Learn R Programming

truthiness (version 1.2.5)

allsimp.emmc: Custom Contrast Function for emmeans

Description

Create a contrast matrix for equivalence test of a 2x4 interaction.

Usage

allsimp.emmc(levels, ...)

Arguments

levels

Interaction levels (should be of length 8).

...

Any other arguments (NB: currently ignored).

Value

A data frame to be passed to the specs argument of emmeans, each column of which represents predictor codings that contrast the illusory truth effect across two intervals.

Details

Runs all six ways of comparing the simple effects of the two-level factor. For use with the emmeans package.

Examples

Run this code
# NOT RUN {
library(ordinal)
library(emmeans)

## create data frame with predictor codings
moddata <- get_model_data()

## use 'allsimp' with emmeans for equivalence test
mod_emm <- emmeans(truth_trajectory_models[["ix2"]],
                   allsimp ~ Rep * Int, data = moddata)

mod_emm

# }

Run the code above in your browser using DataLab