BookmarkSubscribeRSS Feed
mcjs
Fluorite | Level 6

Hi, 

 

Is there any easy way I can get OLS standard errors using "proc surveyreg"?

 

I know that proc surveyreg is a wonderful procedure to get robust standard errors that I cannot easily obtain from proc reg. What I am wondering now is exactly the other way around: getting proc reg standard errors from proc surveyreg.

 

Is there any options embeded in proc surveyreg that generates proc reg standard errors? Or, is there any simple manipulation of surveyreg outputs from which I can develop proc reg standards errors?

2 REPLIES 2
ballardw
Super User

If you don't use any of the sample design or population information options or statements I would expect to get pretty close the to results from Proc Reg.

 

Is there a problem with running proc reg???

mcjs
Fluorite | Level 6

My sample is mostly panel data, with id's for an individual and dates for the individual's particular date. So, there are mutiple obs (dates) for an id. This means I need to cluster standard errors by id, and use fixed effects for dates.

 

So, this data suit for proc surveyreg with the "cluster" and "class" command. But often I need to see "OLS" standard errors. "proc reg" is not good in this case, since generating fixed effects is not much convenient with proc reg. "proc glm" neigher, since "proc glm" does not print adjusted R-squares. 

 

I know that I can manipulate "poc glm" outputs or manipluate data for "proc reg" in order to get what I want. But just wondering if there is any easy way to get what I want from "proc surveyreg" and reduce my work.

 

Thanks for your answering, Ballardw.

 

 

sas-innovate-2024.png

📢

ANNOUNCEMENT

The early bird rate has been extended! Register by March 18 for just $695 - $100 off the standard rate.

 

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 

 

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
  • 2 replies
  • 830 views
  • 0 likes
  • 2 in conversation