Programming the statistical procedures from SAS

PROC STDRATE

Reply
Learner
Posts: 1

PROC STDRATE

Hi,

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.

My syntax:

         proc stdrate data=CASES_POP

                      refdata=STAND_POP

                       method=direct

                      stat=rate(mult=1000)

                       cl=Normal

                      effect;

            POPULATION group=INDIG event=CASES total=POP;

            REFERENCE  total=POP;

            STRATA Age_5yr_65/effect;

            BY LHN;

         run;

Super User
Posts: 18,479

Re: PROC STDRATE

I've got Age_5yr_65= 5 in STANDARD_POP data, in CASES data and POP data

 

In all locations?

This seems to indicate otherwise. 

 

Ask a Question
Discussion stats
  • 1 reply
  • 143 views
  • 0 likes
  • 2 in conversation