BookmarkSubscribeRSS Feed
JohnRidge
Calcite | Level 5

Hi,

Previously I used the proc model procedure to get newey west corrected standard errors. However at my new employer the proc model procudure is not recognised (we are running SAS 9.4 / SAS Enterprise Guide 7.1). Can anyone recommend an alternative procedure? Here is the codeI was running:

ods trace on;

         proc model data=WORK.GFC_COMMONALITY_DATA;

         endo ChgPropBidAsk;

         exog WeightedChgPropBidAsk_Sum;

         instruments _exog_;

         parms b0 b1;

         ChgPropBidAsk =b0 + b1*WeightedChgPropBidAsk_Sum;

         fit ChgPropBidAsk / gmm kernel=(bart,3,0) vardef=n;

by LXID;

run; 

ods trace off;

 

ods output ParameterEstimates=want;

 proc model data=WORK.GFC_COMMONALITY_DATA;

         endo ChgPropBidAsk;

         exog WeightedChgPropBidAsk_Sum;

         instruments _exog_;

         parms b0 b1;

         ChgPropBidAsk =b0 + b1*WeightedChgPropBidAsk_Sum;

         fit ChgPropBidAsk / gmm kernel=(bart,3,0) vardef=n;

by LXID;

run; 

ods output close;

Many Thanks!

John

1 REPLY 1
Rick_SAS
SAS Super FREQ

To clarify: PROC MODEL is part of SAS/ETS software. It sounds like your new employee does not have a license for SAS/ETS.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 1 reply
  • 1370 views
  • 0 likes
  • 2 in conversation