Learn R Programming

dynfrail (version 0.5.2)

dynfrail_prep: Preparation of the input for dynfrail_fit

Description

Preparation of the input for dynfrail_fit

Usage

dynfrail_prep(formula, data, distribution = dynfrail_dist(),
  control = dynfrail_control(), ...)

Arguments

formula

A formula that contains on the left hand side an object of the type Surv and on the right hand side a +cluster(id) statement.

data

A data frame in which the formula argument can be evaluated

distribution

An object as created by dynfrail_dist

control

An object as created by dynfrail_control

...

Other arguments, currently used to warn about deprecated argument names

Value

A list with what is needed to be used with dynfrail_fit

Details

This is an internal function of dynfrail thath actually does before going to the inner maximization, except for the starting values. The input is identical to that from dynfrail A scenario where this would be useful would be to make these calculations and then things would be passed on to dynfrail_fit.

See Also

dynfrail, dynfrail_fit

Examples

Run this code
# NOT RUN {
arglist1 <- dynfrail_prep(Surv(time, status) ~ rx + sex + cluster(litter),
data = rats)

# }

Run the code above in your browser using DataLab