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

Hello,

I have a binary variable (yes/no) and two measuring time (T1 and T2). Thus data are not independant.

I would like to calculate the difference (in percentage) between the proportion of "yes" at T1 and the proportion of "yes" at T2. Moreover i need to calculate the confidence interval of this difference.

I thought it was possible using proc freq (as paired ttest) but i wasn't successufll at getting it to work.

Hoping that you can help me.

Thank you.

 

 

1 ACCEPTED SOLUTION
3 REPLIES 3
FlorianM
Fluorite | Level 6

Thanks a lot for your response.

FreelanceReinh
Jade | Level 19

Later readers of this thread should note:

 

The blog article linked in the accepted solution is about proportions in independent samples. The confidence intervals for a proportion difference in that situation will tend to be too narrow when applied to dependent (paired) samples.

 

A discussion of CIs for the latter situation (including SAS code) can be found in the SESUG 2013 paper SAS® Macros CORR_P and TANGO: Interval Estimation for the Difference between Correlated Proportions ....

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!

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
  • 3 replies
  • 3657 views
  • 0 likes
  • 3 in conversation