fitSplines-methods: Method to create SurvivalModel object with different spline...

Description Usage Arguments Value

Description

Method to create SurvivalModel object with different spline models

Usage

1
2
3
4
5
fitSplines(object, ...)

## S4 method for signature 'SurvivalModel'
fitSplines(object, k = 0:5, scale = c("hazard",
  "odds", "normal")[1])

Arguments

object

SurvivalModel for which spline models are to be fitted

...

additional arguments for specific instances of this generic

k

(numeric vector) The number of knots to be used when fitting spline model (if k=c(2,3) then models will be fit with both 2 and 3 knots)

scale

(character) The scale arguement to be passed to flexsurvspline

Value

A SurvivalModel object with different spline model fits


scientific-computing-solutions/sibyl documentation built on May 21, 2019, 8:40 a.m.