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
- /
- Diagnostic plots with proc surveyreg

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

04-24-2012 05:37 PM

Hello, I am using SAS9.3, the diagnostic plots produced by default with proc reg are very helpful! However, I would like to produce the same diagnostic plots with proc surveyreg. Specifically, plots such as Q-Q, residual versus predicted, residual versus fitted, leverage, Cook's D, studentized residuals, etc. I would be great to be able to create a scatter plot showing the OLS and LOESS lines from proc surveyreg. I have looked through the ODS and survey documentation, but I can't figure out how to produce diagnostic plots when using proc surveyreg. Does anyone have a suggestion?

Have a good day.

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

04-25-2012 08:54 AM

Here I sit as SGF2012, so I can't pull up the docs that I would if I were in the office. What might work: get output datasets from SURVEYREG (not sure if there is an output statement, but as always ODS OUTPUT is your friend). Then it is off to PROC UNIVARIATE for Q-Q plots, or any of the SAS/GRAPH procedures (SGPLOT comes to mind), and you can plot the values obtained.

Hope this helps some.

Steve Denham

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

04-29-2012 10:00 AM

Thanks for the suggestion for using the output statement. it provdies the predicted values, residuals, standard error of the mean predicted value and the lower/upper bounds of the 95% CI for the PROC SURVEYREG. These are the keyword statistics described in the documentation for the output statement for this PROC. What i am additionally hoping to produce are the DFBETAS for my model specified in PROC SURVEYREG. The documentation for DFBETAS discusses several procedures such as REG, GENMOD, GLIMMIX, MIXED & PHREG. DFBETAS don't seem to be available for PROC SURVEYREG. The INFLUENCE option is not recognized with the MODEL statement in PROC SURVEYREG. Do you have any suggestions for producing DFBETAS when using PROC SURVEYREG?

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

04-30-2012 08:37 AM

Other than getting out the X'X matrix, and then doing a whole boatload of programming, I don't see how to do it in SURVEYREG. I wonder if the observation-wise deletion even makes sense in a survey setting, so that it is just very difficult to interpret. What occurs when you look at the results from PROC REG, as a guide to identifying influential observations?

Steve Denham

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

04-30-2012 08:57 AM

At SGF12, Sharon Lohr gave a keynote talk that included a discussion of diagnostic plots. Her paper is available online: "Using SAS for the design, analysis, and visualization of complex surveys." The takeaway from the talk is that you can use the diagnostic procs from PROC REG on survey data, provided that you use the survey weights in the WEIGHT stmt. The diagnostic plots are mostly concerned with predicted/resudual values, and these are identical for PROC REG and PROC SURVEYREG. However, you don't want to use any PROC REG plots that display variance information, such as confidence bands, because the PROC REG variances aren't adjusted for the survey design.

Rick