[R] Weibull- Random Censoring

Halabi, Anan anan.halabi at hp.com
Sun Sep 19 17:41:35 CEST 2010


I generate random vector from Weibull distribution
sampWB <-urweibull(sampleSize, shape=shape.true, scale=scale.true, lb=0, ub=Inf)

how can I create subvector containing 30% of samplesize of sampWB which should be assigned as Censored data?
The probability for each value in sampWB can be uniform to be included in the subvector.



More information about the R-help mailing list