Learn R Programming

jackknifeKME (version 1.0)

simdata: Generating survival data

Description

Data are generated always keeping the second last largest subject as censored i.e. delta_(n-1)=0. The survival times and the censoring times are generated using log-normal(1.1, 1) and Uniform(lambda, 2xlambda) distribution respectively.

Usage

simdata(n, lambda)

Arguments

n
the sample size.
lambda
value of the parameter lambda for Uniform distribution. Different values of lambda are analytically computed to obtain specific censoring percentages. lambda takes values 7.53, 4.81, 3.48, 2.64, 2.04, 1.58, 1.20, 0.8

Value

  • Ysurvival times censored or uncensored i.e. min(t, c)
  • deltastatus
  • Cpercensoring percentage. Different censoring percentages are obtained for different values of lambda of censoring time distribution

Details

This type of data is required to compute the actual and modified jackknife estimates of Kaplan-Meier estimators and their bias. This data is used in Khan and Shaw (2012b).

References

Khan, M. H. R. and Shaw, J. E. H. (2012b). Robust bias estimation for Kaplan-Meier survival estimator with jackknifing (Preprint).

See Also

jackknifeKME

Examples

Run this code
#For Cper = 30\%.
data<-simdata(n = 100,lambda = 3.48)
data 

#For Cper = 50\%.
data2<-simdata(n = 100,lambda = 2.04) 
data2

#For Cper = 80\%.
data3<-simdata(n = 100,lambda = 0.87) 
data3

Run the code above in your browser using DataLab