Dear All,
I have a panel dataset with 18,071 observations.
I am estimating the following model in stata:
xtivreg2 ret2_w mret2_w s_r10_lmcap s_r10_bm s_r10_mom s_r10_op_prof s_r10_agro s_r10_stdret s_r10_vol_s s_r10_lag_ue_p s_r10_lnumage s_r10_divy yr1-yr13 (tq2_centered_w = wklymret_w wklych_usd_w) if sample_to_use == 3, fe first liml cluster(cnum) endog(tq2_centered_w)
The output begins with the warning:
Warning - singleton groups detected. 194 observation(s) not used.
Partial output below indicates 17,877 observations were used (18071-194 = 17877)
Number of clusters (cnum) = 1132 Number of obs = 17877
F( 25, 1131) = 59.19
Prob > F = 0.0000
Total (centered) SS = 56.71687777 Centered R2 = -0.1134
Total (uncentered) SS = 56.71687777 Uncentered R2 = -0.1134
Residual SS = 63.15058851 Root MSE = .06141
When I check generate descriptive statistics, I have complete data for all the variables in the above model for 18,071 observations. No missing values.
Importantly, I have only 7 singletons in my 18071-observation dataset:
. count if number == 1 & sample_to_use == 3
7
I would like to drop the 194 singletons. Could some one let me know how to identify and eliminate the 194 observations?
Best,
Srinivasan Rangan
Related Posts with xtivreg2 - identifying singleton observations
Applying the Heckman selection model in panel data with fixed effectsHello all, I run a fixed effects regression in a linear probability model of health outcomes/behavi…
Panel data: how to calculate date difference in long panel dataDear Stata community, Many thanks for all your help so far. Firstly I have found these forums so us…
Problem with Optimal bandwidth regression discontinuity with large datasetHi all, I am trying to estimate the effects of a conditional cash transfer program in some labor ma…
Drawing with replacement (e.g. bsample?) with resampling size greater than original _NDear statalist-forum, I have a hopefully straightforward question and would be very grateful for an…
group two variables by yearHello all, I want to create a gourp based on size and beta and update it once a year. I tried to u…
Subscribe to:
Post Comments (Atom)
0 Response to xtivreg2 - identifying singleton observations
Post a Comment