Plot estimates at given times for SensIAT_withingroup_jackknife_results
objects
Source: R/autoplot.R
autoplot.SensIAT_withingroup_jackknife_results.Rd
Horizontal 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.
Usage
# S3 method for class 'SensIAT_withingroup_jackknife_results'
autoplot(object, width = NULL, ...)
Examples
# Note: fitting the jackknife is computationally expensive,
# so this example is here for reference.
if (FALSE) { # \dontrun{
fitted <-
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 = 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)
} # }