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




[email protected]

Thanks





        [[alternative HTML version deleted]]

______________________________________________
[email protected] 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

______________________________________________
[email protected] 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.

Reply via email to