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
creating a variable from multiple string variablesI am working with NHANES examination data and would like to create a variable that includes the sum …
Matching to identify a sub-sample of individuals that share similar characteristicsHi all, As opposed to using PSMTACH2 to calculate the propensity scores to identify treatment and c…
Question on How to Make a Panel Table Output with Categorical RegressionHi, I am new to Stata and this forum. I have a question which I spent lots of time on but did not fi…
bar graph using over to look at subset and total of a categorical variableI'm not super experienced graphing with Stata so this is a somewhat basic question. I am making a si…
Odds ratio or hazard riskhi all, how can i calculate odds ratio or hazard risk with a contingency table. for example: tabulat…
Subscribe to:
Post Comments (Atom)
0 Response to Error reshaping from wide to long
Post a Comment