Internal helper to compute marginal APC effects and their confidence intervals
Source:R/plot_partialAPCeffects.R
compute_marginalAPCeffects.Rd
Internal helper function to add lower and upper confidence boundaries pointwise
Arguments
- dat
Dataset containing predicted effects for a grid of all APC dimensions and covariates used in the model.
- model
- variable
One of
c("age","period","cohort")
, specifying the temporal dimension for which the partial effect plots should be created.- plot_CI
Indicator if 95% confidence intervals for marginal APC effects should be computed. Defaults to FALSE.