Is there a SAS procedure to calculate p-value for Mantel-Haenszel Stratum Weighted Method for risk difference in stratified samples? It provided the CI but I can't find p-value for this test.
SAS code I used is
ods output CommonPdiff=CommonPdiff ;
proc freq data = resp order=data;
tables stratum1*stratum2*trt01pn*resp/riskdiff(common) ;
run;
I can't find option from
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_freq_details.htm
Many thanks
You can do this by taking a model-based approach. Fit a logistic model that includes your treatment variable and your stratifying variables and include an LSMEANS statement with the DIFF option to compare the treatments. For example, assuming that your binary response variable is Y with values 0 and 1, where 1 represents the event of interest:
proc logistic;
class trt strat1 strat2 / param=glm;
model y(event="1") = trt strat1 strat2;
lsmeans trt / ilink diff cl;
run;
You might also want to look at the discussion in this note which is more important when you want to estimate as well as test the risk difference. That note shows how it can be estimated as either the marginal effect of treatment or as a difference of LS-means.
Thanks.
There are 3 p-values, which one I should use?
Hi Ksharp,
Thank you for your patience and help. I added the option, but still no p-value. It is very strange no p-value but CI for MH test.
ods output CommonPdiff=CommonPdiff CMH=cmhpval ;
proc freq data = resp order=data;
tables mutcat*hgbcat*trt01pn*resp/riskdiff(common) cmh RELRISK ;
run;
Thanks.
Does proc logistic also create the risk difference p value?
Best,
I had already used logistic regression, need this more sensitivity analysis.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.