Re: [R] Missing at random

2011-01-31 Thread Bert Gunter
Ted et.That solution is for (in "missing data language") MCAR (Missing Completely At Random), i.e. the probability of being missing does not depend on any of the variables in the data. For MAR (Missing At Random), the probability of being missing may depend on the values of covariates but must not

Re: [R] Missing at random

2011-01-31 Thread Ted Harding
On 31-Jan-11 04:17:45, David Winsemius wrote: > > On Jan 30, 2011, at 10:01 PM, assaedi76 assaedi76 wrote: > >> R users: >> Thanks in advance >> How to generate missing at random (MAR)? [DW]: missidx <- sample(1:nrow(dfrm), nrow(dfrm)*frac) is.na(dfrm$measure) <- 1:nrow(dfrm) %in% missidx

Re: [R] Missing at random

2011-01-30 Thread David Winsemius
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

[R] Missing at random

2011-01-30 Thread assaedi76 assaedi76
R users: Thanks in advance  How to generate missing at random (MAR)? 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