autoplot.SensIAT_withingroup_jackknife_results | R Documentation |
SensIAT_withingroup_jackknife_results
ObjectsHorizontal axis represents time, and the vertical axis represents the outcome from the model. Point plotted is the mean estimate, and the error bars show the 95% confidence interval using the variance estimated from the jackknife.
## S3 method for class 'SensIAT_withingroup_jackknife_results'
autoplot(object, width = NULL, ...)
object |
A |
width |
Width of the dodge for position, default is half the minimum distance between time evaluation points. |
... |
Ignored. |
A ggplot2
object.
# Note: fitting the jackknife is computationally expensive,
# so this example is here for reference.
## Not run:
fitted <-
fit_SensIAT_within_group_model(
group.data = SensIAT_example_data,
outcome_modeler = fit_SensIAT_single_index_fixed_coef_model,
alpha = c(-0.6, -0.3, 0, 0.3, 0.6),
id = Subject_ID,
outcome = Outcome,
time = Time,
intensity.args=list(bandwidth = 30),
knots = c(60,260,460),
End = 830
)
jackknife.estimates <- SensIAT_jackknife(fitted, time = c(90, 180, 270, 360, 450))
ggplot2::autoplot(jackknife.estimates)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.