First of all I dont know if this is the proper site to publish this, correct me if its not.
Need some help:
I'd used the "distrate" command on a database "DATA.dta" before.
Done the cleaning on the database and then I modified the "pop.dta" file in which i had the persons-year since the catchment area was modified.
The original code was:
Code:
distrate cases pop using pop.dta, standstrata(age_grp) popstand(pop) by(year sex) format(%8.1f) mult(100000)
Code:
| year sex cases N crude rateadj lb_gam ub_gam se_gam |
Did it twice with 2 different "pop.dta" and "pop2.dta" since i needed it with both.
The code was saved on the do-file
Now the issue im having is that i try to run the code and it says that
Code:
varibale pop not found r(111);
thanks for your help.
0 Response to Calculation of directly standardized rates "distrate" or "dstdize" commands
Post a Comment