multi_surv_spline: Survival Spline fit

Description Usage Arguments Value

View source: R/multi_surv_spline.R

Description

Finds best spline suvreg fit

Usage

1
2
multi_surv_spline(surv_data, time_col = "time", status_col = "status",
  surv_formula = "~ 1", scale_list = "", knots = 3, ...)

Arguments

knots:

Number of knots.

scale_list:

A vector containing a list of scale arguments for flexsurvspline.

status_col:

Name of the column containing the status.

surv_data:

a data.frame

surv_formula:

a formula

time_col:

Name of the column containing the time.

...:

further arguments for flexsurvspline.

Value

The models are returned in the models slot of the result, ordered by best fit. The slot erros contains the fits that had erros. Adjust_table contains the goodness of fit of the models. ff_table contains the faulire frequency table. KM_fit has the Kaplan-Meier fit.


leonardommarques/reliabilitytools documentation built on Aug. 1, 2019, 8:03 p.m.