funest_fit: Fitting functional ensemble survival tree model

Description Usage Arguments Value References Examples

View source: R/nest_fit.R

Description

The function funest_fit takes a long and a short form of the survival data, among other arguments for a random survival forest, to fit an functional ensemble survival tree model for predicting survival probability.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
funest_fit(
  long_train,
  surv_train,
  noftree = 500,
  nofcov = 2,
  split_rule = "maxstat",
  tv_names,
  fv_names,
  nofp = 3,
  t_star,
  t_pred,
  ...
)

Arguments

long_train

long form of survival data from the training set

surv_train

short form of survival data from the training set

noftree

number of trees in the random survival forest

nofcov

number of covariates selected in each survival tree

split_rule

binary splitting rule for random survival forest, default is "maxstat"

tv_names

a list of names of time-varying covariates

fv_names

a list of names of fixed covariates

nofp

number of multivariate principal components

t_star

time for the last observed biomarker measurement

t_pred

time at prediction

...

extra arguments that can be passed to ranger()

Value

A list compose two items. The first item is a list of necessary information for prediction used in funest_pred() function. The second item is the ranger object of the fitted random survival forest.

References

\insertRef

nestpaperfunest

\insertRef

rangerfunest

Examples

1
2
3
4
5
library(funest)
data("long_train")
data("surv_train")
w = funest_fit(long_train, surv_train, tv_names = list("Y1", "Y2", "Y3"), fv_names = list("W"),
 noftree = 10, t_star = 5.5, t_pred = 11)

funest documentation built on March 13, 2020, 5:07 p.m.

Related to funest_fit in funest...