Description Usage Arguments Value Examples
View source: R/initial_SL_fit.R
Conditional Hazard estimation in survtmle package From survtmle (David Benkeser, 2016)
1 2 | estimateHazards(dataList, J, verbose, strata = NULL, adjustVars,
SLlibrary.event, glmFormula.event, superLearnerSummary, bounds)
|
dataList |
output of makeDataList |
J |
same as above |
verbose |
print messages as SL runs? |
strata |
would leave as NULL, dont remember exactly how it is coded |
adjustVars |
data.frame of predictors for SL, dont know why I have it coded this way... just put in e.g. dat[,c("W1","W2")]. by default it will add the Z column and t column in dataList[[1]] when it fits the SL |
SLlibrary.event |
Super Learner library |
glmFormula.event |
a glm formula if you don't want to use SL |
superLearnerSummary |
doesn't do anything, just leave blank |
bounds |
NULL |
added column for the initial data.frame QjHaz <- result, for each subject, h_t from time 0 to T-1; organized in T_i rows QjPseudoHaz <- returns list of length = length(dataList) with added columns name QjPseudoHaz and QjHaz for all j in J. Ignore the PseudoHaz variables – they're used when there are multiple event types; if there's only one type of event they'll == Haz values anyway
1 | # TO DO
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.