sim_bch: Generates a interval censored dataset using the promotion...

Description Usage Arguments Value Examples

View source: R/sim_bch_data.R

Description

sim_bch returns a dataset generated by the promotion time cure rate model.

Usage

1
2
sim_bch(N, theta = c(1, 0.5, 0), lambda = 1, A = 5, B = 15,
  prob = 0.5)

Arguments

N

Size of the sample to be generated.

theta

Three parameters associated with the cure linear predictor.

lambda

Rate parameter for the exponential distributed latent variables.

A

A positive number representing a fixed right censoring.

B

A positive number which multiplies an exponential random variable with mean 1, defining another right censoring case.

prob

Probability that individual presents treatment T1 (baseline is T0).

Value

A generated dataset with columns: Z, the actual event time; L, the leftmost limit of the censored interval; R, the rightmost limit of the censored interval; delta, the failure indicator; xi1, the treatment covariate assuming 1 with probability prob and 0 otherwise; xi2, second variable generated by a standard normal distribution. N_latent is the number of remaining tumorous cells post treatment from the promotion time motivation. Cured individuals are represented by zero on this variable.

Examples

1
sim_bch(20)

JBrettas/intercure documentation built on May 7, 2019, 7:39 a.m.