BookmarkSubscribeRSS Feed
trippi
Calcite | Level 5

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

4 REPLIES 4
Reeza
Super User

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

PGStats
Opal | Level 21

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
SlutskyFan
Obsidian | Level 7

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.

trippi
Calcite | Level 5

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?

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1155 views
  • 0 likes
  • 4 in conversation