BookmarkSubscribeRSS Feed
crystal
Calcite | Level 5
How to calculate the default initial value for logistic regression using PROC GENMOD in SAS?
1 REPLY 1
StatDave
SAS Super FREQ
I assume you want to know how the starting values of the parameter estimates are computed. The starting values are displayed by using the ITPRINT option in the MODEL statement. The starting values are computed as discussed in the McCullagh and Nelder reference (section 2.5 in the 2nd edition). Basically, you can get them using PROC REG by regressing the logit of the response, y, on the predictors with weight ny(1-y). For example, using the remission data in the stepwise example in the PROC LOGISTIC documentation:

data a; set remission;
y=.1*(remiss=0)+.9*(remiss=1);
logit=log(y/(1-y));
wt=y*(1-y);
run;
proc reg;
model logit=smear cell;
weight wt;
run;

Note that for binary response data (rather than binomial, events/trials, data), n=1 and zeros are replaced by 0.1 and ones are replaced by 0.9. For binomial data, y=events/trials with the same adjustment if y=0 or 1.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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