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
Calculate gini coefficient panel data using population of income groups and median income of said groupsHi, I have data containing the population of certain income groups and the median income of those i…
create dataset based on all possible pairs of identifiers within each group in StataHi, I have a dataset that looks like this: Code: * Example generated by -dataex-. To install: ssc…
GMM sensitivity to model specification and adequacy of the modelHi everyone, I'm analyzing a panel dataframe with T = 17 and 42 groups for a total of about 700 obs…
IV-PROBIT with binary endogenous variable and binary instrumentHello There, I am exploring the causal effect of maternal education on child health. My dependent v…
Opening upspecified file extensionDear members, I would like to know if it is possible to open an unspecified file extension using ST…
Subscribe to:
Post Comments (Atom)
0 Response to jackknife loop with wrong number of observations
Post a Comment