BookmarkSubscribeRSS Feed
sas_question123
Calcite | Level 5

I have a project in which I have 60-70 samples.

Outcome = binary (positive or negative case)
Exposure = % of the time participants followed new guidelines (0-100%)
Question - would it be correct to use logistic regression to analyze this?
I am guessing a sample size of 60 or 70 is too small.

What would be the best way to calculate the sample size? Difficult to find examples where the predictor is continuous and outcome is binary.
Also generally, how would the proportion of positive cases affect the analysis? I don't expect there'll be much, if any, but would like to know how to calculate the sample size in both scenarios (regular number of positive cases and low number of positive cases). Thank you.

3 REPLIES 3
StatDave
SAS Super FREQ

Use the LOGISTIC statement in PROC POWER.

sas_question123
Calcite | Level 5
Thank you! I'm very new to power/sample size calculations. I pasted my code below. If I expect the predictor to be really skewed to the left, would exponential be a good vardist to choose?

proc power ;
logistic
vardist ("predictor") = exponential ()
testpredictor ="predictor"
power = 0.8
ntotal=.;
run ;
StatDave
SAS Super FREQ

Exponential and gamma are both reasonable distributions for positively valued and right skewed data

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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