Learn R Programming

hesim (version 0.5.0)

create_IndivCtstmTrans: Create IndivCtstmTrans object

Description

A generic function for creating an object of class IndivCtstmTrans.

Usage

create_IndivCtstmTrans(object, ...)

# S3 method for flexsurvreg_list create_IndivCtstmTrans( object, input_data, trans_mat, clock = c("reset", "forward"), n = 1000, uncertainty = c("normal", "none"), ... )

# S3 method for flexsurvreg create_IndivCtstmTrans( object, input_data, trans_mat, clock = c("reset", "forward"), n = 1000, uncertainty = c("normal", "none"), ... )

# S3 method for params_surv create_IndivCtstmTrans( object, input_data, trans_mat, clock = c("reset", "forward", "mix"), reset_states = NULL, ... )

# S3 method for params_surv_list create_IndivCtstmTrans( object, input_data, trans_mat, clock = c("reset", "forward", "mix"), reset_states = NULL, ... )

Arguments

object

A fitted survival model or the parameters of a survival model.

...

Further arguments passed to IndivCtstmTrans$new() in IndivCtstmTrans.

input_data

An object of class expanded_hesim_data returned by expand.hesim_data.

trans_mat

The transition matrix describing the states and transitions in a multi-state model in the format from the mstate package. See IndivCtstmTrans.

clock

"reset" for a clock-reset model, "forward" for a clock-forward model, and "mix" for a mixture of clock-reset and clock-forward models. See the field clock in IndivCtstmTrans.

n

Number of random observations of the parameters to draw.

uncertainty

Method determining how parameter uncertainty should be handled. See documentation in create_params().

reset_states

A vector denoting the states in which time resets. See the field reset_states in IndivCtstmTrans.

Value

Returns an R6Class object of class IndivCtstmTrans.

See Also

IndivCtstmTrans