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
Equivalent to glmer (R) in stata? for a GLM mixed models (Gamma distribution)Hi all, I am trying to get regression parameters from for a simple experiment for time response wit…
Interpretations of Oaxaca Decomposition ModelDear All, I have run the Oaxaca Decomposition model on productivity by gender group. Can someone re…
Oxaca Model InterpretationDear All, Below is an except of my results from the Oxaca model Country A Country B Male …
GMM and Exact Analytical DerivativesWe are using GMM in Stata to estimate parameters of a nonlinear asset pricing model, with 5 moment c…
Multiple Linear Regression vs OLS Pooled RegressionAm I right in thinking that Pooled OLS is just a multiple linear regression applied to panel data? T…
Subscribe to:
Post Comments (Atom)
0 Response to Saving F-statistics in a for loop
Post a Comment