Programming the statistical procedures from SAS

HOW DO SAS compute standard error in Proc Logistic

Accepted Solution Solved
Reply
Super Contributor
Posts: 284
Accepted Solution

HOW DO SAS compute standard error in Proc Logistic

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


Accepted Solutions
Solution
‎09-05-2014 01:40 PM
Respected Advisor
Posts: 2,655

Re: HOW DO SAS compute standard error in Proc Logistic

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


All Replies
Trusted Advisor
Posts: 1,195

Re: HOW DO SAS compute standard error in Proc Logistic

Using MLE.


Respected Advisor
Posts: 2,655

Re: HOW DO SAS compute standard error in Proc Logistic

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

Trusted Advisor
Posts: 1,195

Re: HOW DO SAS compute standard error in Proc Logistic

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

Respected Advisor
Posts: 2,655

Re: HOW DO SAS compute standard error in Proc Logistic

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

Trusted Advisor
Posts: 1,195

Re: HOW DO SAS compute standard error in Proc Logistic

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?


Solution
‎09-05-2014 01:40 PM
Respected Advisor
Posts: 2,655

Re: HOW DO SAS compute standard error in Proc Logistic

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


Trusted Advisor
Posts: 1,195

Re: HOW DO SAS compute standard error in Proc Logistic

Thanks so much Steve.

Super Contributor
Posts: 284

Re: HOW DO SAS compute standard error in Proc Logistic

Thanks Steve

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 8 replies
  • 346 views
  • 5 likes
  • 3 in conversation