Estimate a Design-Standardised Binary Probability Contrast
Source:R/specification-closure.R
estimate_standardized_probability_contrast.RdReplaces the focal-condition value across a declared target covariate
distribution, obtains population-level expected probabilities using
brms::posterior_epred(), and averages within each posterior draw.
Usage
estimate_standardized_probability_contrast(
fit,
target_data = NULL,
target_scale = c("prepared", "raw"),
ndraws = NULL,
include_group_effects = FALSE
)Arguments
- fit
An approved gp3bayes binary fit.
- target_data
Optional target covariate distribution.
- target_scale
Whether supplied target data are raw or already prepared.
- ndraws
Optional number of posterior draws.
- include_group_effects
Whether recorded group-level effects are included. The default
FALSEtargets population-level predictions.