Learn R Programming

hesim (version 0.5.0)

create_PsmCurves: Create PsmCurves object

Description

create_PsmCurves is a function for creating an object of class PsmCurves.

Usage

create_PsmCurves(object, ...)

# S3 method for flexsurvreg_list create_PsmCurves( object, input_data, n = 1000, uncertainty = c("normal", "bootstrap", "none"), est_data = NULL, ... )

# S3 method for params_surv_list create_PsmCurves(object, input_data, ...)

Arguments

object

Fitted survival models.

...

Further arguments passed to or from other methods. Passed to create_params.partsurvfit() when object is of class flexsurvreg_list.

input_data

An object of class expanded_hesim_data returned by expand.hesim_data. Must be expanded by the data tables "strategies" and "patients".

n

Number of random observations of the parameters to draw.

uncertainty

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

est_data

A data.table or data.frame of estimation data used to fit survival models during bootstrap replications.

Value

Returns an R6Class object of class PsmCurves.

See Also

PsmCurves