predict.SensIAT_fulldata_model {SensIAT} | R Documentation |
Predict mean and variance of the outcome for a SensIAT
within-group model
Description
Predict mean and variance of the outcome for a SensIAT
within-group model
Usage
## S3 method for class 'SensIAT_fulldata_model'
predict(object, time, ...)
## S3 method for class 'SensIAT_within_group_model'
predict(object, time, include.var = TRUE, ..., base = object$base)
Arguments
object |
SensIAT_within_group_model object |
time |
Time points of interest |
... |
Currently ignored. |
include.var |
Logical. If TRUE, the variance of the outcome is also returned |
base |
A |
Value
If include.var is TRUE, a tibble
with columns time, mean, and var is returned.
otherwise if include.var is FALSE, only the mean vector is returned.
Functions
-
predict(SensIAT_fulldata_model)
: For each combination oftime
andalpha
estimate the mean response and variance for each group as well as estimate the mean treatment effect and variance.
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),
)
predict(model, time = c(90, 180))
[Package SensIAT version 0.1.1 Index]