forvalues i = 1/139 {
reg fawtd fdistockgdp if seqnum != `i', robust
outreg2 using table, append excel
}
I'm running the above loop (to create a jackknife test) on 139 observations. I'm doing this because I have a list of 139 countries and want to know how my regression coefficient changes when each country is dropped individually.
There is data for all observations, no data is missing. I used seqnum to generate a numbered list of countries. I'm also using outreg2 to export the data.
My problem is that the results I get list 138 observations for some observations and 139 observations for others (seemingly randomly). It seems to me that it should be 138 for all, since I'm dropping one country each time. I've attached a screenshot that shows the first 22 results below. You can see how the number of observations varies.Array
I would really appreciate it if anyone has thoughts on what the problem might be. Thank you!
Related Posts with jackknife loop with wrong number of observations
F test xtreg, fe indicates pooled OLS is better. What are the consequences for fe?Hello, I am running a fixed effects model on an unbalanced dataset. I cannot reject the null hypoth…
Correcting autocorrelation by adding year dummy variables?Hello everybody! For my master dissertation, I'm dealing with panel data. In addition, I detected h…
Replace missings in an unbalanced panel CONDITIONAL on year and firm IDHello everyone, I am new to Statalist and have an issue with filling up missings in a panel data set…
unbalanced pandel data model - assumptionsHello, I have a clustered model which I run regress on unbalanced panel data. I am not sure which …
Small N and large T panel analysisHi! I am using panel data with N=6 and monthly data from 2000 to 2017 i.e., T=216. The specific indu…
Subscribe to:
Post Comments (Atom)
0 Response to jackknife loop with wrong number of observations
Post a Comment