BookmarkSubscribeRSS Feed
lcmichael_unc
Fluorite | Level 6

I want to compute differences in proportions for a two-level outcome using the logistic procedure with contrasts, according to:

 

proc logistic data=&library..SVR_GP_mITT;
class ACTARMCD HCVGTCAT;
model SVR12= TREATMENT HCVGTCAT LOGHCVBASE;

contrast 'a - b' HCVGTCAT. 1 / estimate=parm;
contrast 'Treatment A vs B' TREATMENT 1;

run;

 

TREATMENT is a two-level predictor (A/B); HCVGTCAT is also two-level (a/b); LOGHCVBASE is continuous.

Unless I’m missing something, the contrast estimates do not, themselves, provide the differences in proportions between treatment arms directly. Is it legitimate to use the contrast (treatment arm, HCV sub-genotype) and parameter estimates (LogHCVBASE) obtained from the logistic model to compute predicted SVR12 proportions for each subject, controlling for all predictors in the model, with the difference in mean proportions (and confidence intervals) subsequently computed by arm group (A vs. B )?

 

Many thanks for all insights.

1 REPLY 1
StatDave
SAS Super FREQ

That is correct. The CONTRAST and ESTIMATE statements provide tests and estimates of linear combinations of model parameters. In the case of a logistic model, such linear combinations are estimates of log odds. If you add the ILINK option, the ESTIMATE statement provides estimates of probabilities. But this does not extend to differences or other functions of probabilities which generally are nonlinear combinations of model parameters. To estimate or test such nonlinear combinations and marginal effects, you can use the Margins, NLEST, or NLMeans macros. Further discussion and an example of using these can be found in this note. The NLEST and NLMeans macros are immediately available for calling in the latest release of SAS (SAS 9.4 TS1M6). Otherwise, they (and the Margins macro) can be downloaded using the links provided in the note.

SAS Innovate 2025: Register Now

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!

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
  • 1 reply
  • 886 views
  • 0 likes
  • 2 in conversation