I have a dataset with 140 variables, 916 obs for 86 unique ids. I want to reshape to wide but get an error because other variables are not constant within id. This is because data for most variables are recorded in the first row of each observation. I was using the command replace var1= var1[_n-1] if var1 == "", but this is taking too long. Is there an easier way to do this?
-
Login or Register
- Log in with
Comment