Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Home
- /
- Analytics
- /
- Stat Procs
- /
- Re: Logistic regression residuals

Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 11-09-2017 10:52 AM
(2252 views)

Hi,

I have a dataset which has been created with both predicted and actual values from a logistic regression model (the only other information in the dataset are the original inputs into the model).

The dataset was already created so no PROC LOGISTIC / GLM has been used.

I know all of the individual parameters in the model and their estimates, however I need to do some analysis on the residuals which are not included in the dataset.

Probably a longshot, but does anyone know how I could compute the residuals from these logistic regression model estimates and actuals?

Thanks!

Nathan

5 REPLIES 5

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

I assume when you say you have the predicted values these are not predicted probabilities but some kind of classification based on the predicted probability. If it is actually the predicted probability then you should be able to compute the residual in a data step.

If my assumption is correct then you could put the parameter estimates into a data set that is in the correct format for use as input into Proc LOGISTIC with the INEST= option and MAXITER=0. You could then use the OUTPUT statement to recreate the predicted probabilities/residuals.

You could also use one of the methods here as well http://support.sas.com/kb/33/307.html

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Residuals are actuals - estimate.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Hi Reeza,

Agreed, though due to this being a logistic regression, rather than simple liner, can it be computed in a manner as simple as this?

I actually think my statistical knowledge is getting all a bit confused!

Agreed, though due to this being a logistic regression, rather than simple liner, can it be computed in a manner as simple as this?

I actually think my statistical knowledge is getting all a bit confused!

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate 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!

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.