BookmarkSubscribeRSS Feed
ahu_
Calcite | Level 5
I am trying to determine the needed sample size for a Logistic Mixed Effects Model powered at 90% with a type I, alpha, error of 5%. I don't have pilot data and there aren't similar studies that have repeated measures. I do have estimates for a logistic regression without repeated measures, including an Odds Ratio of 0.83 and a response probability of 6.9%. How can I estimate my sample size in SAS?
 

Here is the code for the model I will be running: 

proc glimmix data=ecig method=quad oddsratio;
class ID Year(ref='2018');
model vape(Event='1')=Year /s dist=binary link=logit ddfm=none
chisq;
random intercept/subject=ID;
output out=glmxout predicted(blup ilink)=predprob;
run;

2 REPLIES 2
Season
Lapis Lazuli | Level 10

You can search on the web for papers on this field like Estimating power in (generalized) linear mixed models: An open introduction and tutorial in R | Beha.... R code is provided in the paper.

Season
Lapis Lazuli | Level 10

Another paper (Calculating power in analysis of variance. (apa.org)) found on the book Statistical Power Analysis for the Behavioral Sciences | Jacob Cohen | (taylorfrancis.com) also discusses the topic of power calculation in mixed effect models. Of closer revelance to your question is another paper cited in this book: Optimum Sample Size and Number of Levels in a One-Way Random-Effects Analysis of Variance: The Journ.... A table of optimum sample size or number of levels for the random effects model is included in the latter paper. I hope these information helps.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 961 views
  • 0 likes
  • 2 in conversation