Number of groups (e(N_g))
Posted: Tue Apr 12, 2011 2:27 pm
Hello, I am running the following model in Stata.
runmlwin `var' cons Cfem Cage15m psc_a mhedu hhinc5cat Msmk_e_j Malc_e_j Ccp_SDQ11, level2(ks4sch_id: cons) level1(alspid) discrete(d(binomial) l(logit) de(cons) mql1) rigls
although the output (i.e. parameter estimates) seems consistent to when I run the model from within MLwin, the actual number of groups reported in the stata table differ The problem seems to occur when I add in covariates in the fixed part of the model (e.g. psc_a mhedu hhinc5cat Msmk_e_j Malc_e_j Ccp_SDQ11) which may have missing values.
I suggest they check the code that uses and report on the number of groups Any feedback gratefully received.
BW, Roberto.
runmlwin `var' cons Cfem Cage15m psc_a mhedu hhinc5cat Msmk_e_j Malc_e_j Ccp_SDQ11, level2(ks4sch_id: cons) level1(alspid) discrete(d(binomial) l(logit) de(cons) mql1) rigls
although the output (i.e. parameter estimates) seems consistent to when I run the model from within MLwin, the actual number of groups reported in the stata table differ The problem seems to occur when I add in covariates in the fixed part of the model (e.g. psc_a mhedu hhinc5cat Msmk_e_j Malc_e_j Ccp_SDQ11) which may have missing values.
I suggest they check the code that uses and report on the number of groups Any feedback gratefully received.
BW, Roberto.