Plot for estimated treatment effect for SensIAT_fulldata_model
objects
Source: R/autoplot.R
autoplot.SensIAT_fulldata_model.Rd
The horizontal and vertical axes represent the sensitivity parameter alpha
for the control and treatment groups, respectively. The contour plot shows
the estimated treatment effect at each combination of alpha
values.
Arguments
- object
A
SensIAT_fulldata_model
object.- time
Time at which to plot the estimates.
- include.rugs
If
TRUE
, adds rugs indicating the locations where the sensitivity was evaluated to the plot. IfFALSE
, no rugs are added. IfNA
, rugs are added only if the number of distinct values ofalpha_control
andalpha_treatment
is less than or equal to 10.- ...
Additional arguments passed to
predict
.
Examples
# \donttest{
full.object <-
fit_SensIAT_fulldata_model(
data = SensIAT_example_fulldata,
trt = Treatment_group == 'treatment',
outcome_modeler = SensIAT_sim_outcome_modeler,
id = Subject_ID,
outcome = Outcome,
time = Time,
knots = c(60, 260, 460),
alpha = c(-0.6, -0.3, 0, 0.3, 0.6)
)
ggplot2::autoplot(full.object, time = 180)
# }