[R] Number of lines in analysis after removed missings
R. Michael Weylandt
michael.weylandt at gmail.com
Tue Apr 24 16:14:26 CEST 2012
Take a look at nobs()
Michael
On Tue, Apr 24, 2012 at 10:05 AM, Eiko Fried <torvon at gmail.com> wrote:
> I have a dataset with plenty of variables and lots of missing data. As far
> as I understand, R automatically removes subjects with missing values.
>
> I'm trying to fit a mixed effects model, adding covariate by covariate. I
> suspect that my sample gets smaller and smaller each time I add a
> covariate, because more and more lines get deleted.
>
> Is there a way of displaying hTow many subjects are "left" in each analysis?
>
> Thanks
> E
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list