estimate_hazard_SL: wrapper for conditonal hazard regression SuperLearner

Description Usage Arguments Value Examples

View source: R/initial_SL_fit.R

Description

use T, A, C, W data format as input

Usage

1
2
estimate_hazard_SL(dat, T.uniq, ht.SL.Lib = c("SL.mean", "SL.glm", "SL.gam",
  "SL.earth"))

Arguments

dat

data.frame, with col: T, A, C, W

T.uniq

vector of unique event times

ht.SL.Lib

library for SuperLearner

Value

h.hat.t matrix, nrow = n.sample, ncol = length(T.uniq); each row is the predicted conditional hazard h(T=t | T>=t, A, W) for that subject

Examples

1
# TO DO

wilsoncai1992/onestep.survival documentation built on May 29, 2019, 11:58 a.m.