BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mw2939
Calcite | Level 5

Hello I'm having trouble obtaining 95% CI for a proportion. This proportion is a result of a binary variable crossed with another binary variable. I want to know the 95% CI for percentage of mothers that breastfeed exclusively (yes or no, binary) for women of diferent nationalities (also binary). I've tried variations of proc freq but its giving me the confidence interval of the odds ratio instead of for the actual values of % breastfeeding exclusvely. Any help?

 

proc freq data=meley.burum2; table momsnationality*exclusive/chisq; run;

 

*proc freq data=meley.burum2 order=freq;
tables exclusive/binomial;
tables momsnationality/binomial;
weight count;
run;*/

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

Sort by nationality and get the CI for each.

 

proc sort data=meley.burum2; 
by momsnationality; 
run;

proc freq data=meley.burum2;
by momsnationality;
tables exclusive / binomial;
weight count;
run;
PG

View solution in original post

2 REPLIES 2
Ksharp
Super User

It sounds like you want GROUP analysis.

 

proc freq data=meley.burum2 order=freq;
BY exclusive;
tables momsnationality/binomial;
weight count;
run;

PGStats
Opal | Level 21

Sort by nationality and get the CI for each.

 

proc sort data=meley.burum2; 
by momsnationality; 
run;

proc freq data=meley.burum2;
by momsnationality;
tables exclusive / binomial;
weight count;
run;
PG

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 2 replies
  • 7797 views
  • 2 likes
  • 3 in conversation