autoplot.SensIAT_withingroup_jackknife_results: Plot Estimates at Given Times for...

View source: R/autoplot.R

autoplot.SensIAT_withingroup_jackknife_resultsR Documentation

Plot Estimates at Given Times for SensIAT_withingroup_jackknife_results Objects

Description

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, ...)

Arguments

object

A SensIAT_withingroup_jackknife_results object produced from SensIAT_jackknife.

width

Width of the dodge for position, default is half the minimum distance between time evaluation points.

...

Ignored.

Value

A ggplot2 object.

Examples

# 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)

SensIAT documentation built on Sept. 9, 2025, 5:50 p.m.