Perform a post-estimation prediction with uncertainty quantification via parametric bootstrap
cmpredict(
out,
newdata = NULL,
zval = NULL,
typical = NULL,
nsim = 1000L,
seed = NULL,
draws = FALSE
)An output of cmreg.
A named data frame, list, or vector supplying values for every covariate in the fitted formula. A data frame returns one prediction row per row of `newdata`.
Optional named vector for one covariate to vary. Its name must match a formula variable; all remaining covariates are supplied through `newdata` or `typical`.
Optional named vector or list of fixed covariate values. This is a convenience alternative to `newdata` when used with `zval`.
Number of parametric-bootstrap draws.
Optional integer seed for reproducible bootstrap draws. When set, the caller's RNG state is restored before returning.
If `TRUE`, attach the raw bootstrap draw matrix as a `"draws"` attribute on the returned data frame.
A data frame with `estimate`, `conf.low`, and `conf.high` columns, with one row for each prediction scenario. When `draws = TRUE`, its `"draws"` attribute contains the raw parametric-bootstrap matrix.
Atsusaka, Y. and Stevenson, R. T. (2023). The crosswise model for sensitive survey questions. doi:10.1017/pan.2021.43 .
[cmreg()] to fit the required outcome-model object and [cmpredict_p()] for predictions from a predictor model.