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
labeling coefplot with stringHi, I have a dataset with variables A B C D E F G H I J K L M N O P Q R S T U V W X Y Z inflow. I …
multinomial logistic regression with greatest correspondence between predicted and observed values: why no lasso, stepwise, or elastic net?Hi all, I normally include covariates in my regression models based on theoretical considerations, …
Can recognized missing valueThe data I have contained some missing value for my numeric variable, and thus when I destring this …
Identify date columnIn my dataset, I have two date columns, and showed as follow: Year Month 1990 M1 1990 M2 1990 M3 19…
Creating a dummy based on a conditionHi, I'm trying to create a dummy variable that takes on a value of 1 if another (continuous) variabl…
Subscribe to:
Post Comments (Atom)
0 Response to Saving F-statistics in a for loop
Post a Comment