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
- /
- SAS Programming
- /
- SAS Procedures
- /
- Standard Errors in Weighted Regression using PROC ...

Topic Options

- 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
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

10-10-2013 09:30 AM

I'm using proc glm to perform a regression with observation weights. This yields standard errors for the betas based on all observations. I would like to have the standard errors computed using the observation weights instead. Can this be done using Proc Glm or another SAS procedure?

Thanks Much,

Joe

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

Posted in reply to trippi

10-10-2013 10:46 AM

Proc SurveyReg? I don't know if there's a SURVEYGLM, but that's probably the type of procedures you're looking for.

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

Posted in reply to trippi

10-10-2013 11:00 AM

If all you want is to exclude observations with zero weight from the analysis, then use a FREQ variable with value 0 or 1 (see the FREQ statement). Observations with freq=0 will not count towards degrees of freedom but will remain available for predictions.

PG

PG

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

Posted in reply to trippi

10-10-2013 11:30 AM

I don't know the answer, but that is an interesting question to me as well. I have been using PROC GLIMMIX to do inverse probability of treatment weighted regressions using the WEIGHT statement using the EMPIRICAL option to get heteroskedastictiy consistent standard errors. From correspondence with SAS tech support the WEIGHT statement in GLIMMIX gives the correct weighting for IPTW regression but I did not ask about the standard errors. I assumed that they were the correct ones. I'm not sure if they are or if GLM and GLIMMIX compute them the same way when the WEIGHT statement is invoked.

I wish I knew.

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

Posted in reply to trippi

10-10-2013 02:19 PM

Thanks to all.

Proc Survey Reg does yield larger standard errors, which given my proportional weights makes sense. I've read thru the documentation without finding a definitive statement that proc surveyreg uses the weights in computing the standard errors (what I'm hoping for here). Does anyone know for sure that this is the reason for the difference in the standard errors compared to proc glm or proc reg when run on the exact same data?