Hello,
I am working on a project which requires testing the significance of a subset of of my regressors using progressively smaller time periods of panel data as follows:
forvalues i=1997/2016{
eststo clear
xi: reg Y i.X1 i.state i.year i.month if year>=`i'
eststo Y
testparm _X1__2-_X1__132
}
I want to save the F-statistic from each test of X1 (the test for 1991 -2016, 1992 - 2016, and so on). The end goal is to produce a figure which shows how the F-stat for joint significance of the ~130 X1 variables changes over the smaller periods of data.
Any help would be much appreciated!
Related Posts with Saving F-statistics in a for loop
New versions of cprdonsutil and cprdhesutil on SSCThanks as always to Kit Baum, new versions of the cprdonsutil and cprdhesutil packages are now avail…
Panel data regression with high coefficients valuesDear All I have estimated a panel regression with command ' xtreg, fe cluster(id)'. (22 panels and …
New packages cprdhesaeutil and cprdhesoputil on SSCThanks once again to Kit Baum, two new packages cprdhesaeutil and cprdhesoputil are now available fo…
STATA commands for PSTR modelHi Team Can STATA 14 run PSTR model? If it does can someone assist with the commands please. …
Difference-in-difference with multiple treatments and multiple time periodsDear Statalisters, I have job level data and I am trying to estimate the impact of US state labor r…
Subscribe to:
Post Comments (Atom)
0 Response to Saving F-statistics in a for loop
Post a Comment