allsimp.emmc: Custom Contrast Function for emmeans

Description Usage Arguments Details Value Examples

View source: R/emmeans.R

Description

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

Usage

1

Arguments

levels

Interaction levels (should be of length 8).

...

Any other arguments (NB: currently ignored).

Details

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

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.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

truthiness documentation built on May 24, 2021, 9:07 a.m.