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
assaed...@yahoo.com Thanks [[alternative HTML version deleted]] ______________________________________________ R-help@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 ______________________________________________ R-help@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.