BookmarkSubscribeRSS Feed
sstoline
Calcite | Level 5

Dear All:

 
I do need your help with how to get Wald Confidence Interval for Adjusted Odds Ratios in the proc surveylogistic.

The following SAS code(s) only give me the Odds Ratio Estimates table with Point estimate and the 95% Wald Confidence Interval.


proc surveylogistic data =have;
strata STRATUM;
weight WEIGHT;
class x1(param=ref ref = "1") x2(param=ref ref = "1") x3(param=ref ref = "1") x4(param=ref ref = "1") x5(param=ref ref = "1") x6(param=ref ref = "1") x7(param=ref ref = "1") x8(param=ref ref = "1") x9(param=ref ref = "1") x10(param=ref ref = "2");
model  Y (event='1') = x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15;
run;



Response variable Y has two categories (1,2)
some of the independent variables (x1-x10) are categorical variables some have 2 categories (1,2), others have three categories (1,2,3), and x11-x15 are continuous variables.


Any helps will be highly appreciated.


with many thanks

steve

 
1 REPLY 1
skg74_mail_umkc_edu
Obsidian | Level 7

Hi Steve,

 

ODS trace on;

ods output    ParameterEstimates=a****User defined output dataset name;

ods output    oddsratios=b****User defined output dataset name;

proc surveylogistic data =have;
strata STRATUM;
weight WEIGHT;
class x1(param=ref ref = "1") x2(param=ref ref = "1") x3(param=ref ref = "1") x4(param=ref ref = "1") x5(param=ref ref = "1") x6(param=ref ref = "1") x7(param=ref ref = "1") x8(param=ref ref = "1") x9(param=ref ref = "1") x10(param=ref ref = "2");
model  Y (event='1') = x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15;
run;

ODS output off;

ODS trace off;

 

Check newly created datasets a, b. You will find Wald statistics.

Best Regards,

Sri.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

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