Sib-pair Command: chisq


ClassGlobal Utility
Namechisq
Arguments <nrows> <ncols>

Calculate contingency chi-square and permutation P for flat table entered via keyboard.

Example:

>> chi 2 2
row   1: 12 23 
row   2: 43 12

         1      2

  1     12     23
  2     43     12

    No. complete observations =    90
    LR contingency chi-square =  17.58
           Degrees of freedom =   1
           Asymptotic P-value =   0.0000
              Empiric P-value =   0.0000 (  180000 MCMC iterations)
             Trend chi-square =  17.15   (P=0.0000)
                    Agreement =   0.267  (   24/   90)
                Cohen's Kappa =  -0.3976

<< (qchisq)Up to index>> (polychoric)