Below are my questions:
Goal is to estimate comp and sales_1 as instrument variable method ? How would I state these two variables in the instrument statement ?
Can I use both fdone and nolevels ?, since comp and sales_1 are correlated with differenced error term, is it correct to mention in instrument statement under correlated ?
Would fdone or nolevels in model take care of first difference estimation? or should I difference it ahead of time and supply the data in Proc Panel ?
Is GMM1 or GMM2 appropriate? How to choose appropriate GMM?
how to write the equation (1) using SAS proc panel?
To answer your questions in order:
1. To get instruments for sales_1, just use the keyword DEPVAR. To get instruments for the lagged values of comp you would include those in one of the other options for the INSTRUMENTS statement, for example
instruments depvar correlated = (comp);
2. You do not need the FDONE option. Once you specify GMM you are getting first-differenced equations. When combined with the NOLEVELS options, you are getting first-differenced equations exclusively.
3. The differencing is done for you once you specify GMM.
4. GMM1 assumes no serial correlation in the differenced residuals. If that's true then you gain some efficiency, but it's usually safer to use GMM2. GMM2 uses a data-based variance estimator for the differenced residuals.
5. If you are wanting to do standard fixed effects estimation then use
Proc panel data = cust_data;
id cust time;
model Sales = promo promo_1 promo_2 comp comp_1 comp_2 sales_1 sales_2/ fixone;
run;
However, if you are wanting to do dynamic panel estimation using only the level equations then use
Proc panel data = cust_data;
id cust time;
instrument leveleq = (comp);
model Sales = promo promo_1 promo_2 comp comp_1 comp_2 sales_1 sales_2/ gmm2 nodiffs;
run;
Note that I changed CORRELATED to LEVELEQ in the INSTRUMENTS statement. That's because correlated variables are not instruments in the level equations, since they are correlated with the individual effects.
Please email me at Bobby.Gutierrez@sas.com (or post here) if you have any further questions.
... View more