Dear Stata users,
I estimate TFP using prodest command (ssc install prodest) and have one question regarding the estimation. I estimate TFP by industry in a loop and include year and industry controls. Because I estimate it by industry, all other industries except the one being estimated are dropped, hence controls for industries should be omitted due to lack of variation. However, prodest still reports coefficients on industry controls. When I estimate TFP just using fixed effects xtreg command by industry including year and industry dummies, industry coefficients are omitted in the output table as expected. My question is whether something is wrong with my syntax or why the command reports coefficients that should be omitted?
For the convenience I attach the minimum example and below is the code I am using.
xtset id year
//generate industry controls
tab industry, gen(di)
//generate year controls
tab year, gen(dy)
//Estimate TFP by industry including industry and year controls
gen pr = .
levelsof industry, local(levels)
foreach i of local levels {
preserve
keep if industry==`i'
prodest va, free(l) proxy(m) state(k) level(95) acf va poly(3) control(dy* di*)
restore
predict prod_`i', resid
replace pr = prod_`i' if industry==`i'
}
//using xtreg
gen pr_fe = .
levelsof industry, local(levels)
foreach i of local levels {
preserve
keep if industry==`i'
xtreg va l k dy* di*, fe
restore
predict prodfe_`i', resid
replace pr_fe = prodfe_`i' if industry==`i'
}
I would very much appreciate your help. Thank you in advance.
Best,
Alina
Related Posts with Estimating TFP by industry using prodest
loop over files in a folder to do an operation and save the combined result as datasetHello everyone!! I should specify, I am new to stata, so if i misuse terminology, please forgive me…
Is there any way to create age and education variables of a father?Hi all, I am working with the Multiple Indicator Cluster Survey (MICS) whose research design is sim…
Stata omitting two levels of a variable instead of oneI'm presently working on analyzing a survey with multiple waves. I've used append to attach the diff…
Not duplicating Mata code / Using STATA in MataI have a function which is straightforward to implement in both the ado scripting language and mata.…
Help to get rolling average (standard deviation) over 5 yearsHello, I have a panel data like this (unbalanced) ID Year V1 V2 0 2005 30 19 0 2006 20 67 0 2007 4…
Subscribe to:
Post Comments (Atom)
0 Response to Estimating TFP by industry using prodest
Post a Comment