Create a Prediction Contrast Profile
Source:R/prediction-surfaces.R
create_prediction_contrast_profile.RdCreate a Prediction Contrast Profile
Arguments
- fit
A fitted
gp3bayes_fit.- variable
Numeric profile variable.
- contrast_variable
Variable defining two contrasted levels.
- contrast_levels
Optional two levels.
- values
Optional profile values.
- n
Number of values when
valuesis omitted.- at
Named values for other predictors.
- measure
"difference","ratio", or"odds_ratio".- include_group_effects
Whether group effects are included.
- ndraws
Optional posterior draws.
- probs
Three interval probabilities.