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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 2 replies
  • 768 views
  • 0 likes
  • 2 in conversation