01-20-2017 12:17 AM
I am trying to obtain age-standardised rates and have got Groupvar, Agevar, CASES and POP, which i use in the standardisation.
It calculates properly. However, when I try to enter a by_variable (i.e. location) i get an error message:
"ERROR: The stratum in the REFDATA= data set, Age_5yr_65= 5, does not have a matched stratum in the DATA= data set."
I've got Age_5yr_65= 5 in STANDARD_POP data, in CASES data and POP data. I can calculate adj.rates separately for each location. I've also checked that I do not have zeros or missing values or even small values. Everything looks good, but the command does not work. Am I missing something or using it in a wrong way? Any advice is greately appreciated.
proc stdrate data=CASES_POP
POPULATION group=INDIG event=CASES total=POP;