DATA Step, Macro, Functions and more

How to produce proc descript code with age adjusting in SAS. I do not have SAS SUDAAN

Reply
New User
Posts: 1

How to produce proc descript code with age adjusting in SAS. I do not have SAS SUDAAN

How do I replicate this SAS SUDAAN code

proc descript data= two filetype=SAS design=WR;

 

nest _ststr _psu/missunit;

weight _statewt;

 

subgroup cancer AGEp ;

levels 2 5;

var sex;

catlevel 1;

tables cancer;

 

stdvar agep;

stdwgt 0.42026284    0.20743092    0.20203482    0.08896694   0.08130448;

print nsum wsum percent sepercent lowpct uppct/wsumfmt=f6.0 totalfmt=f10.0 style=NCHS;

rtitle "age adjusted :";

output nsum wsum total percent sepercent lowpct uppct/wsumfmt=f13.0 totalfmt=f13.0

percentfmt=f12.1 sepercentfmt=f13.0 lowpctfmt=f13.0 uppctfmt=f13.0

 

filename=cancer3 filetype=sas replace;

run;

 

I do not have SAS SUDAAN and I would like to produce the same results that come out of SAS SUDAAN with SAS. The data has a weight "statewt" and its also age adjusted to 2000 population.

 

What SAS procedure do I use to get the same results that proc descript produces. Also what test would I use to test if sex is significant in the model.

 

Thank you,

 

 

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