Learn R Programming

icpack (version 0.1.0)

get_input_icfit: Get and check input of icfit

Description

Get and check input of icfit

Usage

get_input_icfit(formula, data, entry)

Value

A list with items

Ymat

Matrix (number of subjects x 3) containing entry, left and right hand of intervals

X

Matrix (number of subjects x number of covariates + 1) with design matrix of covariates

Arguments

formula

A formula object with response of the left of a ~ operator and terms on the right. The response must be a survival object as returned by the `Surv` function, with type either right', 'counting' or 'interval2'

data

A data frame in which to interpret the variable names in the `formula`

entry

When appropriate, a vector of entry (left truncation) times, or a string indicating the column name in `data` containing entry times; only used if Surv object is of type 'interval2'