BookmarkSubscribeRSS Feed
linda0910
Obsidian | Level 7

Hi all, 

 

I need help on SAS callable SUDAAN. Here is the example that I am currently working on. 

 

Logistic Example 3.pdf (rti.org)

 

I will need to save the output from the risk ratio. from the the condrisk that line in a sas datafile.

(print cond_rr="Risk Ratio" pred_rr="Risk Ratio"/ condrisk=default predrisk=default;)

 

But I am not able to find the variable names. Could you please help me? 

 

My codes are the same as in Exhibit 14. Here goes the example.

 

PROC RLOGIST DATA=samadult DESIGN=WR FILETYPE=SAS;
NEST STRAT_P PSU_P;
WEIGHT WTFA_SA;
SUBPOPX AGE_P>24 AND MRACRPI2=1 / NAME="WHITES AGED 25+";
CLASS SEX AGE25_3 EDUC_3 REGION MARRY_3;
REFLEVEL SEX=1 REGION=1 MARRY_3=1;
MODEL CANTAFMEDS = SEX AGE25_3 EDUC_3 REGION MARRY_3;
EFFECTS AGE25_3 = (1 -1 0) / exp name="AGE: 25-44 vs. 45-64";
CONDMARG AGE25_3 / adjrr;
PREDMARG AGE25_3 / adjrr;
COND_EFF AGE25_3=(1 0 -1) / NAME = "25-44 vs. 65+";
COND_EFF AGE25_3=(0 1 -1) / NAME = "45-64 vs. 65+";
COND_EFF AGE25_3=(1 -1 0) / NAME = "25-44 vs. 45-64";
PRED_EFF AGE25_3=(1 0 -1) / NAME = "25-44 vs. 65+";
PRED_EFF AGE25_3=(0 1 -1) / NAME = "45-64 vs. 65+";
PRED_EFF AGE25_3=(1 -1 0) / NAME = "25-44 vs. 45-64";
setenv labwidth=17 colspce=1;
print / betas=default betafmt=f7.4 sebetafmt=f8.4 lowbetafmt=f7.4 upbetafmt=f7.4
t_betafmt=f6.2 p_betafmt=f7.4;
setenv labwidth=23 colspce=4 decwidth=3;
print / risk=default tests=default expcntrst=default waldpfmt=f7.4
dffmt=f7.0 loworfmt=f9.3 uporfmt=f9.3 low_cntrstfmt=f5.3
up_cntrstfmt=f5.3;
setenv colspce=1 labwidth=22 decwidth=4 colwidth=9;
print condmrg="CONDMARG" predmrg="PREDMARG" /
cond_mrg=default cnmgcons=default pred_mrg=default prmgcons=default
t_cndmrgfmt=f8.2 t_prdmrgfmt=f8.2 t_cmconfmt=f8.2 t_pmconfmt=f8.2;
setenv labwidth=27 decwidth=3 colwidth=5 colspce=5;
print cond_rr="Risk Ratio" pred_rr="Risk Ratio"
/ condrisk=default predrisk=default;

1 REPLY 1
SASJedi
SAS Super FREQ

SUDAAN software does work with SAS, but it is created and maintained by RTI International. You'll probably get quicker and better answers by submitting your technical question to SUDAAN support. You can log in with your SUDAAN account and ask a question here.

All the best,

Mark

 

 

Check out my Jedi SAS Tricks for SAS Users

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 381 views
  • 0 likes
  • 2 in conversation