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
ESTIMATE Workshop at Michigan State in early JuneHi All: I'm not sure about the proper protocol when advertising workshops on Statalist. I suspect s…
removing 95%CI and renaming axis by intervalsHere is my code for prevalence vs month: logit mrsp i.month margins month, plot(ytitle(Prevalence) …
Generating KM curves in stratified analysis with time varying covariateI am trying to generate KM curves in a survival analysis that is stratified by matched pairs and als…
Understanding interactions using -clogit_I have a 1:4 matched dataset. One case (a brain tumor that responded to an experimental treatment) m…
Need help with the postfile commandHello, I'm trying to use the postfile command but everytime i try to execute it it gives me a error…
Subscribe to:
Post Comments (Atom)
0 Response to Error reshaping from wide to long
Post a Comment