search for: tablechisqmh

Displaying 1 result from an estimated 1 matches for "tablechisqmh".

Did you mean: tablechisq
2003 Mar 28
0
the chi-square test for trend / Correction
Hi (again), Please find here a correction of the function I send previously --------------------------------------------------------- tableChisqMH=function(x) { n=sum(x) G2=(n-1)*(tablepearson(x)$estimate^2) dll=1 p.value=1-pchisq(G2,dll) out=list(estimate=G2,dll=dll,p.value=p.value,dim=dim(x),name="Mantel-Haenszel Chi-square") return(out) } --------------------------------------------------------- Eric __________________...