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
Reference on manipulation of locals/macros/listsI would like to learn more how to work with locals to store objects and then add, remove things, man…
cmmixlogit does not convergeHi, I am facing slight issues with the cmmixlogit command, which worries me a bit. I am working wit…
problem in dummy approach-interaction termsDear I use the panel regressions using augmented mean group (AMG) method, I add the dummy variabl…
Surveys and lists.Hi there, Can you please help me with how can I do this in STATA? My data set: Several waves of dat…
Looping to create marginsplots for different moderators but how to get the same y-axis?Hi everybody I am researching how outsourcing affects employees in terms of income, employment, and…
Subscribe to:
Post Comments (Atom)
0 Response to xtivreg2 - identifying singleton observations
Post a Comment