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
Strange macro behaviourHi guys, I am trying, with the following loop to drop some of my observations, specifically the one…
Which method does xtlogit/clogit use to estimate a fixed effects model (i.e. mean difference/first difference/LSDV)?In Asymmetric Fixed-effects Models for Panel Data (available here open access: https://journals.sage…
Interpretation of AMEs: CIs overlapping each other but not zero, can I conclude that there is an interaction?Hi all, I'm fitting a simple OLS-model including an interaction term. To interpret the interaction …
Making tables from dataHi, I've district-level migration data of India. Say- State no district no migration type 1 (p…
Missing values in StataI am creating my own data set for my thesis, and have run into a problem with missing values. I am c…
Subscribe to:
Post Comments (Atom)
0 Response to Saving F-statistics in a for loop
Post a Comment