BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
desireatem
Pyrite | Level 9

Please can some one explain to me how SAS compute standard error is proc logistic

1 ACCEPTED SOLUTION

Accepted Solutions
SteveDenham
Jade | Level 19

The optimization process may be Newton-Raphson, although there are other possible methods. The NLOPTIONS statement will allow for selection of optimization algorithms.  In PROC LOGISTIC this is seldom used, however.  The default methodology in LOGISTIC depends on the number of parameters to be estimated: <40 - Newton Raphson with ridging, 40 to 400 - quasi-Newton, >400 - conjugate gradient.

Steve Denham


View solution in original post

8 REPLIES 8
SteveDenham
Jade | Level 19

The estimated standard error is sigma(eta), which can be computed as the square root of the quadratic form (1, x') (Vhat sub b) (1, x')'

where (Vhat sub bis the estimated covariance matrix of the parameter estimates.

Note that these are all calculated in the so-called transformed space, which depends on the link used.

Steve Denham

stat_sas
Ammonite | Level 13

Thanks Steve - What is the estimation procedure behind this calculation please?

SteveDenham
Jade | Level 19

Just as you said--it is maximum likelihood

There are several pages of matrix algebra in the Details section of the PROC LOGISTIC documentation that can be fought through.

But in the end, the key facts to know are: maximum likelihood techniques are used to find the point estimates, estimates of the covariance matrix, the gradient matrix and the Hessian matrix.  Appropriate matrix manipulation results in the quadratic form I mentioned.  The standard errors are then calculated from that quadratic form.  The estimates and standard errors are on the "link" scale.  The point estimates on the original scale are obtained by applying the inverse link function, while the standard errors are obtained by using the delta method (a Taylor series expansion around the point estimate).

Steve Denham

stat_sas
Ammonite | Level 13

Thanks agian Steve - This is a very comprehensive explaination about the MLE estimation. Just to learning more, does Newton-Raphson algorithm play any role in this process?


SteveDenham
Jade | Level 19

The optimization process may be Newton-Raphson, although there are other possible methods. The NLOPTIONS statement will allow for selection of optimization algorithms.  In PROC LOGISTIC this is seldom used, however.  The default methodology in LOGISTIC depends on the number of parameters to be estimated: <40 - Newton Raphson with ridging, 40 to 400 - quasi-Newton, >400 - conjugate gradient.

Steve Denham


stat_sas
Ammonite | Level 13

Thanks so much Steve.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 8 replies
  • 2357 views
  • 6 likes
  • 3 in conversation