dynfrail_prep: Preparation of the input for 'dynfrail_fit'

Description Usage Arguments Details Value See Also Examples

View source: R/dynfrail_prep.R

Description

Preparation of the input for dynfrail_fit

Usage

1
2

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

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.

Value

A list with what is needed to be used with dynfrail_fit

See Also

dynfrail, dynfrail_fit

Examples

1
2
arglist1 <- dynfrail_prep(Surv(time, status) ~ rx + sex + cluster(litter),
data = rats)

dynfrail documentation built on Nov. 17, 2017, 6:15 a.m.