neg.intcat {negligible}R Documentation

Test for Negligible Interaction between Two Categorical Variables with a Continuous Outcome

Description

This function allows researchers to test whether the interaction effect among two categorical independent variables, with a continuous outcome variable, is negligible.

Usage

neg.intcat(
  iv1 = NULL,
  iv2 = NULL,
  dv = NULL,
  neiL,
  neiU,
  nboot = 50,
  alpha = 0.05,
  data = NULL
)

## S3 method for class 'neg.intcat'
print(x, ...)

Arguments

iv1

Levels of the first independent variable

iv2

Levels of the second independent variable

dv

Score on the continuous dependent/outcome variable

neiL

Lower bound of the negligible effect interval

neiU

Upper bound of the negligible effect interval

nboot

Number of bootstrap samples for calculating CIs

alpha

Nominal Type I Error rate

data

Dataset containing iv1, iv2 and dv

x

object of class neg.twointcat

...

extra arguments

Details

This function allows researchers to test whether the interaction effect among two categorical independent variables, with a continuous outcome variable, is negligible. In this case, 'negligible' represents the minimum meaningful interaction effect.

This test uses an intersection union approach, where a decision regarding the omnibus interaction effect is inferred from the decision regarding all simple (2 x 2) interaction effects; in other words, if all simple interaction effects are deemed negligible, then the omnibus interaction is also deemed negligible.

The test also uses the percentile bootstrap to determine confidence intervals, an approach that has been found to be robust to violations of normality and variance homogeneity.

See Cribbie, R. A., Ragoonanan, C., & Counsell, A. (2016). Testing for negligible interaction: A coherent and robust approach. British Journal of Mathematical and Statistical Psychology, 69, 159-174.

Value

A list including the following:

Author(s)

Rob Cribbie cribbie@yorku.ca

Examples

outcome<-rnorm(60,mean=50,sd=10)
iv_1<-rep(c("male","female"),each=30)
iv_2<-rep(c("young","middle","old"),each=10,times=2)
d<-data.frame(iv_1,iv_2,outcome)
neg.intcat(iv1=iv_1,iv2=iv_2,dv=outcome,neiL=-15,neiU=15,nboot=10)
neg.intcat(iv1=iv_1,iv2=iv_2,dv=outcome,neiL=-15,neiU=15,nboot=10,data=d)

[Package negligible version 0.1.8 Index]