Outcome Modeler for SensIAT
Single Index Model.
Source: R/sim_outcome_modeler.R
SensIAT_sim_outcome_modeler.Rd
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
"optim"
,"nlminb"
, or"nmk"
.- id
The patient identifier variable for the data.
- ...
Currently ignored, included for future compatibility.
Examples
# A basic example using fixed intensity bandwidth.
object <-
fit_SensIAT_within_group_model(
group.data = SensIAT_example_data,
outcome_modeler = SensIAT_sim_outcome_modeler,
id = Subject_ID,
outcome = Outcome,
time = Time,
knots = c(60,260,460),
End = 830,
intensity.args=list(bandwidth=30)
)