Statistical Procedures

Programming the statistical procedures from SAS
BookmarkSubscribeRSS Feed
mspak
Quartz | Level 8

Dear all,

 

I am experiencing problem on using PROC PANEL in running GMM model. I have a dataset (attached) with the following variables:

 

GVKEY = firm identification code

FYEAR = financial year

 

Samples: 

DIV = dummy variable 1 or 0

 

Dependent variable:

RD = research & development costs, R&D

 

Independent variables:

RDRD = quadratic term of R&D

MB = market to book ratio

SGWTH = sales growth

CHG_WC = change of main effect

STKISSUES = stock issues

 

 

The following is my requirement s:

1. I wish to run a GMM with dependent variable, RD. lagged RD should be included as independent variable in the GMM model for two samples, DIV = 0 and DIV = 1. 

2. No lagged value of the independent variables of RDRD, MB  and SGWTH.

3. Lagged value of the independent variables of CHG_WC and STKISSUES are to be generated. 

4. To assess instrument validity using AR and Sargan test.

 

I am using the following program to run the regression, however, the results were not generated due to shortage of memory:

 

 

proc sort data=want1;
by gvkey fyear;
run;

 

proc panel data=FC.want1;
by DIV;
id gvkey fyear;
model RD = LAGRD RDRD MB SGWTH CHG_WC STKISSUES
/ gmm nolevels twostep maxband=5 artest = 2;;
run;

 

I am not sure is there any problem on the above program? Can Proc Panel help to generate the lagged variables of CHG_WC and STKISSUES authomatically?

 

Thank you and hope to get reply soon.

 

MSPAK

2 REPLIES 2
Ksharp
Super User
It is a question about ETS . plz post it at Forecasting Forum.


mspak
Quartz | Level 8

Thank you Ksharp,

 

I have posted it at Forecasting forum.

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!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

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