Package src :: Package stats306b :: Package lecture9 :: Module tables
[hide private]
[frames] | no frames]

Module tables

source code

Functions [hide private]
 
tableCCA(T)
Canonical correlation of contingency table.
source code
Variables [hide private]
  status = array([[ 50., 45., 8., 18., 8...
  f = KL(status, k= 2)
  D = array([ 0.50371568, 0.26519685, 0.12425338, 0.05891402])
  WX = array([[ 3.14717376, 4.12156814, 4.54573099, 4.9616437...
  WY = array([[ 3.34366112, 4.48779206, 4.8660805 , 5.2585334...
Function Details [hide private]

tableCCA(T)

source code 

Canonical correlation of contingency table.

Returns:

Canonical directions: Wrow, Wcol Canonical correlations, D.

Variables Details [hide private]

status

Value:
array([[  50.,   45.,    8.,   18.,    8.],
       [  28.,  174.,   84.,  154.,   55.],
       [  11.,   78.,  110.,  223.,   96.],
       [  14.,  150.,  185.,  714.,  447.],
       [   0.,   42.,   72.,  320.,  411.]])

WX

Value:
array([[ 3.14717376,  4.12156814,  4.54573099,  4.96164379],
       [-4.27608955, -3.66859863, -2.78582165, -1.70083902],
       [ 2.40681147, -0.31357648,  0.19162815,  1.85323013],
       [ 0.4367924 , -1.8207752 ,  0.98144147, -0.54933078]])

WY

Value:
array([[ 3.34366112,  4.48779206,  4.8660805 ,  5.25853341],
       [-4.42870963, -4.21755237, -3.29284032, -2.09836142],
       [ 3.03823731,  0.69547447,  0.59838443,  2.30896377],
       [ 1.03844158, -1.77721197,  1.23248589,  0.05825005]])