fit_akritas: Wrapper of 'survivalmodels::akritas'

View source: R/fit_surv.R

fit_akritasR Documentation

Wrapper of survivalmodels::akritas

Description

Wrapper of survivalmodels::akritas

Usage

fit_akritas(
  formula,
  data,
  id.var,
  time.var,
  event.var,
  nfold = 1,
  option = list(),
  lambda = 0.5,
  ...
)

Arguments

formula

formula used by survivalmodels::akritas

data

data containing all covariates, follow-up time, event indicator and id

id.var

see SDRsurv

time.var

see SDRsurv

event.var

see SDRsurv

nfold

number of folds used when fitting survival curves with sample splitting. Default is 1, meaning no sample splitting

option

a list containing optional arguments passed to survivalmodels::akritas. We encourage using a named list. Will be passed to survivalmodels::akritas by running a command like do.call(akritas, option). The user should not specify formula, data and reverse; time_variable, status_variable, x, y will be ignored.

lambda

bandwidth parameter for uniform smoothing kernel in nearest neighbours estimation. The default value of 0.5 is arbitrary and should be chosen by the user

...

ignored

Value

a pred_surv class containing fitted survival curves for individuals in data


QIU-Hongxiang-David/SDRsurv documentation built on March 29, 2024, 8:41 a.m.