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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

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