HI! I am new in STATA and I was asked to translate this program in python but I can not understand what these command are doing in details. In general this program will be used for the GMM moment conditions, that is
But my problem is about how to understand this gmm_acf program.
My more specific confusions:
1. What is the meaning of at(name) in
? I read the syntax file, I didn't find the "name" option.
2. `1' is the first element of "varlist" that will be used in later?
3. how to understand
. Why [1,1] and [1,2] here?
Thank you so much !!!!!!!!
Code:
gmm gmm_acf, nequations(1) nparameters(2) twostep instruments(k L.l, noconstant) from(b1 0.4 b2 0.6) conv_maxiter(100) technique(bfgs 10 dfp 10)
Code:
program gmm_acf syntax varlist [if], at(name) quietly { local 1 : word 1 of `varlist' tempvar f w eta generate float `f' = `at'[1,1]*l + `at'[1,2]*k generate float `w' = phi - `f' regress `w' cL.`w' cL.`w'#cL.`w' cL.`w'#cL.`w'#cL.`w' predict float `eta', residuals replace `eta' = `eta' + eps replace `1' = `eta' } end
1. What is the meaning of at(name) in
Code:
syntax varlist [if], at(name)
2. `1' is the first element of "varlist" that will be used in later?
3. how to understand
Code:
generate float `f' = `at'[1,1]*l + `at'[1,2]*k
Thank you so much !!!!!!!!
Comment