[R] Missing at random
David Winsemius
dwinsemius at comcast.net
Mon Jan 31 05:17:45 CET 2011
On Jan 30, 2011, at 10:01 PM, assaedi76 assaedi76 wrote:
> R users:
> Thanks in advance
> How to generate missing at random (MAR)?
> missidx <- sample(1:nrow(dfrm), nrow(dfrm)*frac)
> is.na(dfrm$measure) <- 1:nrow(dfrm) %in% missidx
>
> assaedi76 at yahoo.com
>
> Thanks
>
>
>
>
>
> [[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.
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list