Statistical Procedures

Programming the statistical procedures from SAS
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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