cure_dep_censoring {CureDepCens}R Documentation

Cure Dependent Censoring model

Description

cure_dep_censoring can be used to fit survival data with cure fraction and dependent censoring. It can also be utilized to take into account informative censoring.

Usage

cure_dep_censoring(
  formula,
  data,
  delta_t,
  delta_c,
  ident,
  dist = c("weibull", "mep"),
  Num_intervals = 3
)

Arguments

formula

an object of class "formula": should be used as 'time ~ cure covariates | informative covariates'.

data

a data frame, list or environment containing the variables.

delta_t

Indicator function of the event of interest.

delta_c

Indicator function of the dependent censoring.

ident

Cluster variable.

dist

distribution to be used in the model adjustment, specifies the marginal distribution of times (must be either weibull or mep).

Num_intervals

Number of intervals of the time grid (mep only).

Details

This function estimates the parameters of the Piecewise exponential model (dist = "mep") or Weibull model (dist = "weibull") with cure rate and dependent censoring, considering the frailty model to estimate the clusters variability and a parameter that captures the dependence between failure and dependent censoring times.

Value

cure_dep_censoring returns an object of class "dcensoring" containing the results of the fitted models. An object of class "dcensoring" is a list containing at least the following components:

Examples


library(CureDepCens)

delta_t = ifelse(Dogs_MimicData$cens==1,1,0)
delta_c = ifelse(Dogs_MimicData$cens==2,1,0)

fit <- cure_dep_censoring(formula = time ~ x1_cure + x2_cure | x_c1 + x_c2,
                          data = Dogs_MimicData,
                          delta_t = delta_t,
                          delta_c = delta_c,
                          ident = Dogs_MimicData$ident,
                          dist = "mep")


[Package CureDepCens version 0.1.0 Index]