TimeSampleWeibull: Generate time-to-event data according to a Weibull regression...

Description Usage Arguments Note Author(s)

View source: R/TimeSampleWeibull.R

Description

Generates time-to-event data using the transform inverse sampling method, and such that the time-to-event is distributed according to a Weibull distribution induced by censored and/or non-censored covariates. Can be used to set up simulations.

Usage

1
TimeSampleWeibull(covariate_noncens = NULL, covariate_cens, lambda, gamma, beta)

Arguments

covariate_noncens

Censored covariate vector.

covariate_cens

Matrix where each column represents a non-censored covariate.

lambda

Scale parameter.

gamma

Shape parameter.

beta

Regression parameters, ordered as β linked to the non-censored covariates, β linked to the censored covariate.

Note

The use of this function is illustrated in SurvRegCens.

Author(s)

Stanislas Hubeaux, [email protected]


SurvRegCensCov documentation built on May 30, 2017, 3:32 a.m.