Well, if you know both the numerator and denominator for each estimate, and since the numerators are all > 40, then you could use:
proc genmod data=yourdata;
class group;
model numerator1/denominator1 = group /dist=binomial type3;
lsmeans group/diff ilink;
run;
Where numerator1 and denominator1 are the values for activity_1, and would be replaced by numerator2 and denominator2 for activity_2. Since it seems from your communications that the denominator would be the same for both activities because it is the enrollment at the school, you could simplify a little bit.
SteveDenham
Thank you so much! I have one last silly question, do you know what's this test called? It's clearly not a T-test, is it binomial test?
It is a generalized linear model with a binomial distribution and a logit link.
Or
Logistic regression.
SteveDenham
Binomial distribution: bounded below by zero, above by 1 (inclusive at both bounds). It is the proportion (or rate) of subjects (or trials) having a given characteristic divided by the number of subjects (or trials) observed (N). The variance is a function of the proportion (=N*p*(1-p)).
Poisson distribution: bounded below by zero (inclusive). It is the count of subjects having a given characteristic. The population variance is equal to the population mean.
SteveDenham
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.