Extending the Johnson-Neyman Procedure to Categorical Independent Variables: Mathematical Derivations and Computational Tools
Year: 2016
Type: article
Abstract: Moderation analysis is used throughout many scientific fields, including psychology and other social sciences, to model contingencies in the relationship between some independent variable (X) and some outcome variable (Y ) as a function of some other variable, typically called a moderator (M ).Inferential methods for testing moderation provide only a simple yes/no decision about whether the relationship is contingent.These contingencies can often be complicated.Researcher often need to look closer.Probing the relationship between X and Y at different values of the moderator provides the researcher with a better understanding of how the relationship changes across the moderator.There are two popular methods for probing an interaction: simple slopes analysis and the Johnson-Neyman procedure.The Johnson-Neyman procedure is used to identify the point(s) along a continuous moderator where the relationship between the independent variable and the outcome variable transition(s) between being statistically significant to nonsignificant or vice versa.Implementation of the Johnson-Neyman procedure when X is either dichotomous of continuous is well described in the literature; however, when X is a multicategorical variable it is not clear how to implement this method.I begin with a review of moderation and popular probing techniques for dichotomous and continuous X. Next, I derive the Johnson-Neyman solutions for three groups and continue with a partial derivation for four groups.Solutions for the four-group derivation rely on finding the roots of 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .COMPUTE semat = (msr*inv(t(data)*data)).COMPUTE modres(:,2) = (diag(semat))&**(1/2).COMPUTE modres(:,3) = modres(:,1)&/modres(:,2).COMPUTE modres(:,4) = 2*(1-tcdf(abs(modres(:,3)),dffull)).COMPUTE temp = alpha/2.CDFINVT p = temp /df = dffull.COMPUTE tcrit = toutput.COMPUTE modres(:,5) = modres(:,1) -tcrit*modres(:,2).COMPUTE modres(:,6) = modres(:,1) + tcrit*modres(:,2).DO IF covtog = 0. COMPUTE dataint = {MAKE(N,1,1), designX, m}.ELSE IF covtog = 1.COMPUTE dataint = {MAKE(N,1,1), designX, m, cov}.END IF.COMPUTE yestint = dataint*inv(t(dataint)*dataint)*t(dataint)*y.CORR var1 = y /var2 = yestint.COMPUTE ycorint = rPears.COMPUTE r2int = ycorint**2.COMPUTE rchint = fullr2 -r2int.COMPUTE Fint = (dffull*rchint)&/(dfred*(1-fullr2)).COMPUTE pint = 1-FCDF(Fint, dfred, dffull).COMPUTE intres = {rchint, Fint, dfred, dffull, pint}.COMPUTE transtog = 0. COMPUTE minM = cmin(m).COMPUTE maxM = cmax(m). PROBE min = minM /max = maxM.COMPUTE results = tempres.COMPUTE OGres = tempres.COMPUTE results(nrow(results),6:7) = {0,0}.COMPUTE i3 = 1.LOOP IF i3 <= nrow(results).DO IF i3 < nrow(results).COMPUTE results(i3, 6) = 1*(results(i3,4) < results(i3+1,4)) -1*(results(i3,4) > results(i3+1,4)).COMPUTE results(i3, 7) = -1*((results(i3,5) < alpha) AND (results(i3+1,5) > alpha)) + 1*((results(i3,5) > alpha) AND (results(i3+1, 5) < alpha)).END IF.COMPUTE results(i3,8) = (abs(results(i3,5) -alpha) < convcrit).DO IF i3 = nrow(results).COMPUTE transcnv = 0. ELSE IF i3 = 1.COMPUTE transcnv = ((results(i3,7) = 1)AND((results(i3,8)=1)OR (abs(results(i3+1,5) -alpha) < convcrit))).ELSE.COMPUTE trnscnv1 = ((results(i3,7) = 1) AND ((results(i3,8)=1) OR (abs(results(i3+1,5) -alpha) < convcrit))).COMPUTE trnscnv2 = ((results(i3,7) = -1) AND ((results(i3,8)=1) OR (abs(results(i3+1,5) -alpha) < convcrit))).COMPUTE transcnv = (trnscnv1 = 1) OR (trnscnv2 = 1).END IF.DO IF ((abs(results(i3,7))=1)AND(transcnv = 0)).COMPUTE trnsindx = i3.COMPUTE transtog = 1.COMPUTE minmtran = mmin({results(i3+1,1), results(i3,1)}).COMPUTE maxmtran = mmax({results(i3+1,1), results(i3,1)}).PROBE min = minmtran /max = maxmtran.COMPUTE results = {results; tempres}.COMPUTE results(GRADE(results(:,1)),:) = results.ELSE.COMPUTE i3 = i3+1.END IF.END LOOP.COMPUTE numJN = 1*(results(nrow(results),8) =1) + 1*((results(1,8) = 1) AND (results(1,7) <> 1)) + csum(abs(results(:,7))). DO IF numJN > 0. COMPUTE JNSoln = MAKE(numJN,1, -999).COMPTUE JNIndx = MAKE(numJN, 1, -999).COMPUTE slncnt = 1.DO IF results(nrow(results),8) = 1.COMPUTE JNSoln(1,1) = results(nrow(results),1).COMPUTE JNIndx(1,1) = nrow(results).COMPUTE slncnt = slncnt +1.END IF.LOOP i1 = 1 to nrow(results).DO IF abs(results(i1 ,7)) = 1.COMPUTE abvblw = {results(i1,1), abs(results(i1,5)-alpha); results(i1+1, 1), abs(results(i1+1,5) -alpha)}.COMPUTE minval = GRADE(abvblw(:,2)).COMPUTE indxtog = all(abvblw(GRADE(abvblw(:,2)),:) = abvblw).DO IF (indxtog = 1).COMPUTE JNIndx(slncnt,1) = i1.ELSE.COMPUTE JNIndx(slncnt,1) = i1+1.END IF.COMPUTE abvblw(GRADE(abvblw(:,2)),:) = abvblw.COMPUTE JNSoln(slncnt,1) = abvblw(1,1).COMPUTE slncnt = slncnt+1.END IF.END LOOP.
Author: Amanda Kay Montoya
Institution: The Ohio State University
Language: English
Subfield: Statistics and Probability
Field: Mathematics
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W2621138694
