SensIAT_sim_outcome_modeler {SensIAT} | R Documentation |
Outcome Modeler for SensIAT
Single Index Model.
Description
Outcome Modeler for SensIAT
Single Index Model.
Usage
SensIAT_sim_outcome_modeler(
formula,
data,
kernel = "K2_Biweight",
method = "nmk",
id = ..id..,
...
)
Arguments
formula |
The outcome model formula |
data |
The data to fit the outcome model to. Should only include follow-up data, i.e. time > 0. |
kernel |
The kernel to use for the outcome model. |
method |
The optimization method to use for the outcome model, either |
id |
The patient identifier variable for the data. |
... |
Currently ignored, included for future compatibility. |
Value
Object of class SensIAT::Single-index-outcome-model
which contains the outcome model portion.
Examples
model <-
fit_SensIAT_within_group_model(
group.data = SensIAT_example_data,
outcome_modeler = SensIAT_sim_outcome_modeler,
alpha = c(-0.6, -0.3, 0, 0.3, 0.6),
id.var = Subject_ID,
outcome.var = Outcome,
time.var = Time,
End = 830,
knots = c(60,60,60,60,260,460,460,460,460),
)
[Package SensIAT version 0.1.1 Index]