[R] R-help; generating censored data

Christopher Kelvin chris_kelvin2001 at yahoo.com
Wed Apr 11 18:28:31 CEST 2012


Hello,
 can i implement this as 10% censored data where t gives me failure and x censored.
Thank you

p=2;b=120
n=50

set.seed(132);
r<-sample(1:50,45)
t<-rweibull(r,shape=p,scale=b)
t
set.seed(123); 
cens <- sample(1:50, 5) 
x<-runif(cens,shape=p,scale=b) 
x

Chris Guure
Researcher,
Institute for Mathematical Research
UPM



More information about the R-help mailing list