I'm working with a dataset in which students are nested in schools; my two-level model reflects this nesting.
After I estimate the fixed and random coefficients using xtmixed, I run the command estat group. I see that the minimum number of observations per group is 3. (I know, you can see this information from the xtmixed results too.) I would like my estimates to reflect the exclusion of any group with fewer than 15 observations. In other words, I would like to identify (and possibly just drop) any group containing fewer than 15 observations, and then run my xtmixed statement.
Is there a way to identify the groups with fewer than 15 observations? That's basically the one issue I'm having. I'm not sure how Stata is doing this.
A possibly related question: Is Stata including an observation in a group if the observation is non-missing on all of the predictor variables included in my model?
After I estimate the fixed and random coefficients using xtmixed, I run the command estat group. I see that the minimum number of observations per group is 3. (I know, you can see this information from the xtmixed results too.) I would like my estimates to reflect the exclusion of any group with fewer than 15 observations. In other words, I would like to identify (and possibly just drop) any group containing fewer than 15 observations, and then run my xtmixed statement.
Is there a way to identify the groups with fewer than 15 observations? That's basically the one issue I'm having. I'm not sure how Stata is doing this.
A possibly related question: Is Stata including an observation in a group if the observation is non-missing on all of the predictor variables included in my model?

Comment