Learn R Programming

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

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.

point_estimate

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

bootstrap

If TRUE, then n bootstrap replications are drawn by refitting the survival models in object on resamples of the sample data; if FALSE, then the parameters for each survival model are independently draw from multivariate normal distributions.

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