Help using Base SAS procedures

Help with Age Standardizing via Proc Surveyreg

Reply
Learner
Posts: 1

Help with Age Standardizing via Proc Surveyreg

Hello all,

 

I'm relatively new to SAS (ver. 9.3) and am having some trouble with proc surveyreg. My goal is to age standardize with proc survey reg, per NHANES recommendation. However, modifying their sample code isn't working for me and I cannot determine why.

 

The problem is that estimates for the levels of my race/ethnicity variable (i.e., RE) are not being generated. Can someone take a look and offer some perspective on this issue?

 

 

 

FYI - In this example, I'm age standardizing by race/ethnicity (i.e., RE) for my outcome. Prex is the presence of the disease (coded 0/100).

 

 

LOG FILE

2548       /*Age Standardization process per NHANES procedures, using 2010 National Census as basis*/
2549       PROC SURVEYREG DATA=NIGTAll4YR nomcar;
2550       STRATA SDMVSTRA;
2551       CLUSTER SDMVPSU;          
2552       CLASS RE age;
2553       WEIGHT WTSOG4YR;        
2554       /*DOMAIN Status;*/
2555       MODEL Prex=RE age RE*age /solution noint VADJUST=none;

2556       /*output out=ageadj_prev1;*/
2557       Estimate 'NH Black' RE 0 1 0 0 age .0964 .1256 .1429 .1656 .1680  RE*age 0 0 0 0 0 .0964 .1256 .1429 .1656 .1680 0 0 0 0
2557     ! 0 0 0 0 0 0;
2558       Estimate 'Hispanic' RE 0 0 1 0 age .0964 .1256 .1429 .1656 .1680 RE*age 0 0 0 0 0 0 0 0 0 0 .0964 .1256 .1429 .1656 .1680
2558     !  0 0 0 0 0;                          
2559       Estimate 'NH Other' RE 1 0 0 0 age .0964 .1256 .1429 .1656 .1680 RE*age .0964 .1256 .1429 .1656 .1680 0 0 0 0 0 0 0 0 0 0
2559     !  0 0 0 0 0;
2560       TITLE 'Age-standardized prevalence by race: NHANES 2009-2012';
2561       run;

NOTE: The structure of the Estimates table has changed from an earlier release of SAS.
NOTE: The PROCEDURE SURVEYREG printed pages 2-4.
NOTE: PROCEDURE SURVEYREG used (Total process time):
      real time           0.37 seconds
      cpu time            0.38 seconds

 

 

 

LST FILE


                                                              Estimate

                                                          Standard
                                  Label       Estimate       Error       DF    t Value    Pr > |t|

                                  NH Black     Non-est           .        .        .         .


                                                              Estimate

                                                          Standard
                                  Label       Estimate       Error       DF    t Value    Pr > |t|

                                  Hispanic     Non-est           .        .        .         .
^L                                       Age-standardized prevalence by race: NHANES 2009-2012      09:53 Wednesday, June 22, 2016   4

                                                      The SURVEYREG Procedure

                                          Regression Analysis for Dependent Variable Prex

                                                              Estimate

                                                          Standard
                                  Label       Estimate       Error       DF    t Value    Pr > |t|

                                  NH Other     Non-est           .        .        .         .

 

Ask a Question
Discussion stats
  • 0 replies
  • 453 views
  • 0 likes
  • 1 in conversation