I am controlling in a regression besides four other variables for control variable Z. Unfortunately, it is the only variable that does not have values due to the fact that it is a growth variable that calculates the delta of two values. All the others variables would give me more than 1,200 observations. the addition of this variable would reduce the sample to almost 800 observations.
Therefore I looked at similar papers and realized that a dummy variable adjustment exists for panel data. Although I have already found some reports which criticize the method, I would like to add the approach to my calculation. The following lines show my approach for the moment.
gen Zgrowth = D.z
gen Zgrowth_dummy = 0
replace Zgrowth_dummy = 1 if Zgrowth == .
replace Zgrowth = 0 if salesgrwoth == .
How do I conduct not the xtreg command? Should I calculate two separate regressions?
Thank you very much in advance for your support!!!!
Therefore I looked at similar papers and realized that a dummy variable adjustment exists for panel data. Although I have already found some reports which criticize the method, I would like to add the approach to my calculation. The following lines show my approach for the moment.
gen Zgrowth = D.z
gen Zgrowth_dummy = 0
replace Zgrowth_dummy = 1 if Zgrowth == .
replace Zgrowth = 0 if salesgrwoth == .
How do I conduct not the xtreg command? Should I calculate two separate regressions?
Thank you very much in advance for your support!!!!
Comment