results_contrasts: Produce contrasts from a frequentist or Bayesian object.

View source: R/results.r

results_contrastsR Documentation

Produce contrasts from a frequentist or Bayesian object.

Description

This function takes the draws result from a model and produces a contrast table with confidence intervals and P-values based on structured predictions. Contrasts are comparisons between predictions.

Usage

results_contrasts(pr, predict.df)

Arguments

pr

The structured predictions. A return from 'structure_predictions'.

predict.df

The predictions produced from the model. A return from 'results_predictions'.

Details

Supports a two-way and a four-way comparison. A two-way comparison compares two different predictions while a four-way comparison compares the difference between two two-way comparisons. For instance, identifying a treatment effect is a two-way comparison (high vs. low value). Comparing the treatment effect in two different situations is a four way comparison (high vs. low in situation one compared to high vs. low in situation two).

Value

The contrasts table.

See Also

Other internal functions: get_coef(), get_data(), get_draws(), get_formula(), get_link(), get_vcov(), results_coefficients(), results_predictions(), structure_predictions()


jacobaro/danalyze documentation built on Oct. 20, 2022, 8:09 a.m.