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
group-based trajectory modeling - how to obtain the 95% CI of the number of identified groups?Hello statalists, I used the traj command and applied Nagin's criteria to identify the number of tr…
Interpreting a time variant covariate in a linear mixed effects modelHello, I am looking for some help with interpreting the coefficients in a linear mixed effects mode…
The item sign in Cronbach's Alpha resultGood morning, I met a problem when doing the Cronbach's Alpha analysis, so I really need help. In my…
In space placebo error: variable does not existHi all, First of all, the best wishes for 2023! I am struggling with my last placebo test (in-sp…
Creating a new date variable and converting it to %td formatHi all, I have a hopefully simple formatting question for dates. Most resources I've found on dates…
Subscribe to:
Post Comments (Atom)
0 Response to jackknife loop with wrong number of observations
Post a Comment