| 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 |
... |
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:
-
meanxSample mean of the first population/group. -
meanySample mean of the second population/group. -
trmeanxSample trimmed mean of the first population/group. -
trmeanySample trimmed mean of the second population/group. -
sdxSample standard deviation of the first population/group. -
sdySample standard deviation of the second population/group. -
madxSample median absolute deviation of the first population/group. -
madySample median absolute deviation of the second population/group. -
eiLLower bound of the negligible effect (equivalence) interval. -
eiUUpper bound of the negligible effect (equivalence) interval. -
effsizerawSimple difference in the means (or trimmed means if normality = FALSE) -
cilraw2Lower bound of the 1-alpha CI for the raw mean difference. -
ciuraw2Upper bound of the 1-alpha CI for the raw mean difference. -
cilrawLower bound of the 1-2*alpha CI for the raw mean difference. -
ciurawUpper bound of the 1-2*alpha CI for the raw mean difference. -
effsizedStandardized mean (or trimmed mean if normality = FALSE) difference. -
cildLower bound of the 1-alpha CI for the standardized mean (or trimmed mean if normality = FALSE) difference. -
ciudUpper bound of the 1-alpha CI for the standardized mean (or trimmed mean if normality = FALSE) difference. -
effsizepdProportional distance statistic. -
cilpdLower bound of the 1-alpha CI for the proportional distance statistic. -
ciupdUpper bound of the 1-alpha CI for the proportional distance statistic. -
t1First t-statistic from the TOST procedure. -
t1Second t-statistic from the TOST procedure. -
df1Degrees of freedom for the first t-statistic from the TOST procedure. -
df2Degrees of freedom for the second t-statistic from the TOST procedure. -
p1p value associated with the first t-statistic from the TOST procedure. -
p2p value associated with the second t-statistic from the TOST procedure. -
alphaNominal Type I error rate
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)