I am getting an error message as 'variable id does not uniquely identify the observations' while reshaping the data from wide to long. I checked my id variable i.e. FIPS and found that there are duplicate observations. However, I cannot remove the duplicates of the id variable FIPS as it will remove observations of another variable called uw_id. I want the variable uw_id for analysis. Removing observations of uw_id by dropping duplicates of FIPS will not serve my analysis. I will appreciate if I receive any help.
Related Posts with Error reshaping from wide to long
Capture change in one variable while different variable is constantDear Statalisters, I am working with a longitudinal dataset. I'm trying to create a variable to cap…
Hansen issuewhy i am not getting Hansen statistics? the command is as follows xtabond2 fg_ta l.fg_ta size age ia…
tabm and percentagesHello, This is a question that has come up after my last couple posts on the Statalist and is now a…
calculating distance in StataDear All, I would like to know how I can calculate distance in stata between two cities in a country…
Panel Data - Which model to use? Fama macbeth or panel data another modelHello, I am currently writing my thesis in Finance. I want to compare the difference in Turnover ra…
Subscribe to:
Post Comments (Atom)
0 Response to Error reshaping from wide to long
Post a Comment