Stuart-Maxwell marginal homogeneity test for nominal data. Use this SPSS syntax.
matrix.
comp tab=
{1520, 266, 124, 66;
234, 1512, 432, 78;
117, 362, 1772, 205;
36, 82, 179, 492}. /*a k x k frequency (contigency) table (data example taken from Stuart, 1955)
comp k= ncol(tab).
comp rt= rsum(tab).
comp ct= csum(tab).
comp d= (rt-t(ct))(1:(k-1)).
*print d.
comp S= -(tab(1:(k-1),1:(k-1))+t(tab(1:(k-1),1:(k-1)))).
loop i= 1 to k-1.
comp S(i,i)= rt(i)+ct(i)-2*tab(i,i).
end loop.
*print S.
comp chi2= t(d)*inv(S)*d.
print chi2.
*print sqrt(chi2).
comp sig= 1-chicdf(chi2,k-1).
print sig.
end matrix.
------------------------------
Kirill Orlov
------------------------------
Original Message:
Sent: Mon January 02, 2023 04:08 PM
From: Megan Smith
Subject: Stuart Maxwell Test of Marginal Homogeneity--Paired Samples
Would someone please show me the click by click method of running this test for paired pre and post samples in SPSS version 29? It looks like the interface has changed since I last ran it.
Thank you.
--
Megan O. Smith, MPH
Program Evaluator
Smith Consulting Group Services, LLC
#SPSSStatistics