Message-ID: <2E126E21-5527-4FEC-AA11-17DCB532A2A3@comcast.net>
Date: 2011-01-31T04:17:45Z
From: David Winsemius
Subject: Missing at random
In-Reply-To: <83150.13489.qm@web45205.mail.sp1.yahoo.com>
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