SAS Forecasting and Econometrics

Forecasting using SAS Visual Forecasting, SAS Forecast Server, SAS Econometrics and more
BookmarkSubscribeRSS Feed
bssturgi
Calcite | Level 5

Does anyone know how to replicate standard errors generated from the 'robust' option in STATA using SAS?  

 

I have a co-author that used STATA and did xtreg with the "fe" and "robust" options.  I'm using SAS and doing proc panel with the 'fixone' option.  How do I replicate the "robust" standard errors from STATA?  HCCME=0? HCCME=3? Use the cluster option by itself or with one of the HCCME options?  I've tried all kinds of combinations, but can't replicate it, and I don't know what STATA is doing when 'robust' is chosen.

 

5 REPLIES 5
kweenbe
SAS Employee

I also have a customer using robust standard errors in STATA that wants to know if there is an equivalent in SAS Viya.

PaigeMiller
Diamond | Level 26

@bssturgi wrote:

Does anyone know how to replicate standard errors generated from the 'robust' option in STATA using SAS?  

I don't know what STATA is doing when 'robust' is chosen.

 


We don't know what STATA is doing either, and so its hard to determine how to match this in SAS. You really need to find the documentation on what STATA is doing to make progress here.

--
Paige Miller
kweenbe
SAS Employee

Thanks Paige, great point.

 

I did a quick search and found this summary on the web.  I don't have a background in this field.

 

Robust Standard Errors in STATA. ”Robust” standard errors is a technique to obtain unbiased standard errors of OLS coefficients under heteroscedasticity. In contrary to other statistical software, such as R for instance, it is rather simple to calculate robust standard errors in STATA.

 

 

PaigeMiller
Diamond | Level 26

Well, I don't have SAS Viya, but PROC ROBUSTREG ought to be available and it will produce robust estimates of the coefficients and robust standard errors. There are four methods in PROC ROBUSTREG, please see the documentation, and I couldn't say which of these four (if any) is what STATA does.

--
Paige Miller
kweenbe
SAS Employee
Excellent Thanks!

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Discussion stats
  • 5 replies
  • 2229 views
  • 2 likes
  • 3 in conversation