turn on suggestions

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

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- Regression Question: Best way to make predictions ...

Topic Options

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-24-2013 02:24 AM

Hello everyone,

I'm trying to learn the best way to get both predicted values and confidence intervals for observations in a test dataset when you are using a model based on a separate training dataset. Better yet, what if I'm just working with one dataset, but some of the observations are missing the dependent variable. How can I get the predicted value/confidence interval for these assuming I have all of the predictor variables present?

In my coursework, I've learned to use Proc Score which does give you the predicted values, but it doesn't get you the confidence intervals. Is there a way to get this in SAS?

Thanks in advance to anyone that can help!

Accepted Solutions

Solution

03-24-2013
07:50 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-24-2013 07:50 AM

Look at the OUTPUT statement, it exists for most if not all regression procedures. In proc reg for example, the statistics PREDICTED= LCL=, LCLM=, UCL= and UCLM= will provide the predicted values and confidence intervals (for the mean and for individual observations) for all observations in your dataset, including those with a missing dependent variable value.

PG

PG

All Replies

Solution

03-24-2013
07:50 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-24-2013 07:50 AM

Look at the OUTPUT statement, it exists for most if not all regression procedures. In proc reg for example, the statistics PREDICTED= LCL=, LCLM=, UCL= and UCLM= will provide the predicted values and confidence intervals (for the mean and for individual observations) for all observations in your dataset, including those with a missing dependent variable value.

PG

PG

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-24-2013 11:26 AM

Thank you so much!

I've always tried that, but for **two years**, I didn't realize that you need a period to denote "missing dependent variable" get an estimate for it. I feel a lot better about my regression skills in SAS now. Thanks again for responding!