datagen: Date generation function

Description Usage Arguments Details Value References Examples

Description

Generate interval-censored data under generalized odds-rate model, with different combinations of right-censoring rate and cumulative baseline hazard function.

Usage

1
dataPA(N, case, alpha)

Arguments

N

size of dataset

case

data generation configuration; takes value in 1, 2 and 3.

alpha

parameter of link function; alpha=0 for the PH model and alpha=1 for the PO model.

Details

The above function generate interval-censored data from generalized odds-rate model, under different simulation configurations. For further details please see Lu et al. (2019+).

Value

d1

vector indicating whether an observation is left-censored (1) or not (0).

d2

vector indicating whether an observation is interval-censored (1) or not (0).

d3

vector indicating whether an observation is right-censored (1) or not (0).

Li

the left endpoint of the observed interval; if an observation is left-censored, its corresponding entry should be 0.

Ri

the right endpoint of the observed interval; if an observation is right-censored, its corresponding entry should be Inf.

Z

design matrix of predictor variables (in columns); should be specified without an intercept term.

References

Lu, M., Liu, Y., Li, C. and Sun, J. (2019+). An efficient penalized estimation approach for a semi-parametric linear transformation model with interval-censored data. arXiv:1912.11703.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
case  <- 3
nsub  <- 100

# Generate interval-censored data under PH model

dat <- dataPA(nsub,case,alpha=0)
rp  <- c(mean(dat$d1),mean(dat$d2),mean(dat$d3))
rp

# [1] 0.63 0.22 0.15

PenIC documentation built on Jan. 9, 2020, 5:08 p.m.