Learn R Programming

coxinterval (version 1.0)

coxaalenic: Cox-Aalen model for interval-censored survival data

Description

Fit a Cox-Aalen model to interval-censored survival data with fixed covariates.

Usage

coxaalenic(formula, data = parent.frame(), subset, init = NULL,
           formula.timereg = NULL, init.timereg = FALSE,
           close.cplex = TRUE, control, ...)

Arguments

formula
an expression of the form response ~ terms, where response is a survival object returned by the Surv function and terms contains at least one multipli
data
an optional data frame in which to interpret the variables named in the arguments formula and formula.timereg.
subset
expression specifying which rows of data should be used in the fit. All observations are included by default.
init
a list with elements named coef and basehaz. The coef element should be a scalar or vector specifying the initial values of the multiplicative regression coefficient. If init = NULL or
formula.timereg
a list of formula objects specifying models to fit with the timereg package's cox.aalen function using right-censored observations in data. Here the sho
init.timereg
a logical value indicating that init should be overrided by estimates based on the cox.aalen fit to the first model in formula.timereg.
close.cplex
a logical value indicating that CPLEX data structures should be freed when coxaalenic exits.
control
a named list of parameters controlling the model fit, as returned by the function coxaalenic.control. This defaults to coxaalenic.control().
...
additional arguments to be passed to coxaalenic.control.

Value

  • An object of the class "coxinterval" and "coxaalenic", which is a list with the following components.
  • callthe matched call to coxic.
  • nsize of the sample used in the model fit.
  • pnumber of (multiplicative) regression coefficients.
  • coefa named p vector of regression coefficients.
  • vara named p by p covariance matrix of the regression coefficients.
  • basehaza data frame giving the cumulative regression functions evaluated at time points given by the maximal intersections of the censoring intervals.
  • initlist of initial values used in the model fit.
  • loglika vector giving the initial and final log-likelihood values.
  • iternumber of iterations needed to achieve the model fit.
  • maxnormthe maximum norm of the difference between the penultimate and final parameter values.
  • gradnormthe inner product between the final parameter value and the score function.
  • cputimethe processing time for parameter and variance estimation.
  • fit.timeregan unnamed list whose components give the cox.aalen fit to any models specified by the formula.timereg argument.
  • na.actionthe "na.action" attribute of the model frame.
  • censor.ratea vector giving the rates of left-, interval- and right-censoring among the observations used in the model fit.
  • controla named list of arguments passed to coxic.control.

newcommand

\CRANpkg

href

http://CRAN.R-project.org/package=#1

pkg

#1

Details

A valid response in the formula argument can be expressed as Surv(, , type = "interval2") where (, ] is the censoring interval for the survival time. Following the survival package's type = "interval2" censoring for the Surv function, we use the convention that any right-censoring times are provided in the variable and is set to the NA value.

Terms in the formula have either time-varying additive effects on the survival hazard as in Aalen's additive regression model, or fixed multiplicative effects as in the Cox model. Multiplicative terms are distinguished by applying timereg's prop function to each corresponding variable.

coxaalenic requires C functions, which are loaded only if coxinterval is installed from source on a system with (http://www-01.ibm.com/software/commerce/optimization/cplex-optimizer/){ CPLEX}. Refer to the package's README for detailed instructions.

References

Boruvka, A. and Cook, R. J. (2014a) A Cox-Aalen model for interval-censored data.

Martinussen, T. and Scheike, T. H. (2006) Dynamic Regression Models for Survival Data. New York: Springer.

Scheike, T. H. and Zhang, M.-J. (2002) http://dx.doi.org/10.1111/1467-9469.00065{ An additive-multiplicative Cox-Aalen regression model}. Scandinavian Journal of Statistics 29, 75--88.

See Also

cox.aalen, prop, Surv

Examples

Run this code
# Fit a Cox model to the breast cosmesis dataset
if (is.loaded("coxaalenic", "coxinterval")) {
  fit <- coxaalenic(Surv(left, right, type = "interval2") ~ prop(treat),
                    data = cosmesis)
  fit
  plot(fit$basehaz, type = "s")
}

Run the code above in your browser using DataLab