Hello, Statalist-ers,
I have a balanced panel dataset of census tract-year observations with variables on select socioeconomic variables.
I need to use the "built-in" macro r(levels) from the levelsof command in an imputation process for each census tract, but when I run the command on the unique identifier for census tract (i.e., a string variable containing its geocode), I get the 'failed to compute' error with no additional details. In looking around, I found this post in which the programmer is said to have discovered a bug in the underlying .ado file for the collapse command. Similar to the linked post, the command seems to work properly for the year variable, which has far fewer unique values.
The exact command I'm running is
.
Curious if anyone has experienced this behavior or if they have suggestions on how to fix?
Thanks,
Kelsey
I have a balanced panel dataset of census tract-year observations with variables on select socioeconomic variables.
I need to use the "built-in" macro r(levels) from the levelsof command in an imputation process for each census tract, but when I run the command on the unique identifier for census tract (i.e., a string variable containing its geocode), I get the 'failed to compute' error with no additional details. In looking around, I found this post in which the programmer is said to have discovered a bug in the underlying .ado file for the collapse command. Similar to the linked post, the command seems to work properly for the year variable, which has far fewer unique values.
The exact command I'm running is
Code:
levelsof geocode
Curious if anyone has experienced this behavior or if they have suggestions on how to fix?
Thanks,
Kelsey
Comment