BookmarkSubscribeRSS Feed
Turkeyboy
Calcite | Level 5

Hi,

I am estimating a non-linear seemingly unrelated regressing using proc model, as follows:

proc model data=temp2w;
   Y1= a0 + ((gamma))*(rho1)*X1+ (1-(theta))*(rho2)*X2;
   Y2= b0 + (1-(gamma))*(rho1)*X1+ (theta)*(rho2)*X2;
   fit  dPIFO dPIDOM/ sur;
run;
quit;

I need estimates of a0, b0, gamma, theta, rho1, and rho2. The model estimates the parameters as I would expect. Is there a way to adjust standard errors for clustered observations in SAS? My dataset consists of a panel of firms, and there is reason to suspect that observations are not independent within a firm.

3 REPLIES 3
kessler
SAS Employee

Unfortunately, PROC MODEL doesn't support the estimation of parameters in a system of equations with random effects.  I'm not aware of any other SAS procedures that can address this problem either.  We'll look into adding this ability to a future version of MODEL.

Turkeyboy
Calcite | Level 5

Thanks for your reply! I don't think I need random effects, however. I want the fixed effects estimates the model produces, but I want to adjust the standard errors for possible intra-cluster correlations. For example, proc genmod allows for the "repeated' command which adjusts the standard errors for non independence within the groups. Is there any way to do this in proc model?

kessler
SAS Employee

PROC MODEL can correct the standard errors for heteroscedasticity using the HCCME= option on the FIT statement.  This option does not allow you to specify the structure of the clustering of the data, but it may give you results closer to what you're looking for.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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