Learn R Programming

hesim (version 0.2.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, point_estimate = FALSE, ...)

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

# S3 method for params_surv 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.

point_estimate

If TRUE, then the point estimates are returned and and no samples are drawn.

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