A-dependence statistics in multi-way contingency tables

Test of independence wanted:
Mutual
Serial

For a test of mutual independence, provide parameter 1 (name of the Frequencies column; for example: count):

For a test of serial independence, provide parameter 2 (value of d; for example: 3):

Select a local dataset as an ASCII or Excel file:


Example with the highschool data:

alcohol cigarette marijuana count
yes yes yes 911
yes yes no 538
yes no yes 44
yes no no 456
no yes yes 3
no yes no 43
no no yes 2
no no no 279

Results:

          T df p.value 
12   451.40  1       0 
13   258.73  1       0 
23   642.03  1       0 
123   59.22  1       0 
all 1411.39  4       0 


Example with the DNA data:

gaattcctggggtcaagctatctgttggtctctgcctcccaaagtgttgggattataggt
gtgaaccactgtgcctagacccccaaattatctttttttcagagacagtgtgatagttct
caaactatcacctaacattcctggtaggagaggaaagatctctctcttgccccagtcatg
cctgtctaactacgtgtaactagttagctcgacttactgttataatttttctcactgata
gaatttttgcaaagacactttcaatactaccaaaataaatagtaatcaaccacttggaaa
gcatttcgaactaactgaagtccctacttacaccaaatgaggaaaagccaaactacactg
tgggacacactgtaagtccctgcatcagtcagctgttgctgtgcaaacacctcctcaaga
ctcggcaggataaagcaatgaccatttataattgctcacatgtctgcaggtcagctgctt
tttggctgaccgaggcagggcttagctaggctggctctgcagcgtgtgtctctcattctc
ctcctgtggcaaacaatggcagatgacaatggcaaatgtggaaagcctttaaagaagaaa
tctcataaggagttccctgtcactcccattcatctcagtctttcagccaaagcaagtgat
atgtccaaaccccatatcaaggggtggggaaatataatttgcttatttattaggagcaaa
gtcacatggtggtcattgcagaatgggttgaatgacataacctatcatcagccctgaaga
aactcatcattcatttccttcctcaagatccccctcagccgggcatctccagatcttact
ctttcccacactctgtatacaacagtccactcacactagctaccctgcttcctttggcac
cctctttccactagataacctgttcactcagcatttctattttcatttgcatctccaccc
tttgcccattaccccagcagcacacagaggaccctgacagaataggcaaaacccagaagt
tgggtgggtagataatgtgtgaaagctcacacggttctgacgcctccttgacgcagcaca
ttactagcgaatgacatgtatagggcctggggtgtttgcagaaccaaatcaggtgtggag
gaaattatatgtaaatacctccatgggtgtgtgattgtatcatacctcaccataacaaag
ctcaaatgacatttcatttccaaatgtggctaggtttccctgtgttatatgtcgttgaaa
gccagtataaataaatatctgtgaaagtcctagctgactgcctgctttgtttctgccact
aaactgtaagctcctcatgaacagagtgtttctgtacaattcactagctgtctctatctt
tacctcacagccaatccacaaatgaacgctgtcagccttgccccccatcatatcccaacc
atccatgtctggctactccattgctagtccaaccgaagccccttgcatctcatgcctggg
ttatttcacagccttctaggctggtaactcccgctgctactgtgcctggctccagtctat
tctgtacatggtgaagaggatcctttgaaaaatggataaaatgagtagcaaattgtgttt
ctcctgcactcagaatcctcctctggctcctcactgtaacctctggcttcagtagttacg
gcaaatatttaaaagtcagcctgcaggaagaaccctgatttactgagttttccaatgtta
gtagtataaatactcatcatggccaattttaagctggcttctttccttcactccgtccct
ccctcctccccttctcccctccttctcttctcccctctttccttcatttcctccctccct
ccctcatttcttctgtccttctctccttcccttcctttccttctcacgtccttctttcct
ttcttccctcctcccgtcctttcttccctattctctgcctcctactctagaattgacatt
tcatgacaggcaatccatgtctgtcttagttattgcttagaagtacctggcacataatgg
aaggctcagtacatatttcttgaacaaatagttgactaattgaatagatcatcctttctt
aattctgtaccaggatttaagaattattcaaagaagatgtcattgttttaaaatgaccaa
gtactgctcagcactttcaagttcacaaagcatgcctcatgcatcatctctatgatctgt
acccgggtgcccatcctgagaagctgggaaaggcttttctcttcctcctcactttacaaa
tgaggaaacaaagactcagagggatggaggttcccgctcaaggccaaacagtaagtatgt
atccacaagtctgactctcagtctggcagtcttctcagtggtctccaggaactgtttagc
tcttggggggatctcataagggaagcctggaggcttcagggagagctgtcccaaggaaga
ggagagaaacacatggtggcgaggaaggaggattgacgaccagggaaggccttacgtagg
cctctaccaggctgagcctctggtgtcaggccagtaacatagtaattcaggtcccaatcc
tgattctgtctctagattcccactaacctccccacagacatggagcattgagcccccctt
ccccacttatagagtaccccagatagcataggctccacacctagcacccaccttcttgca
agtctatagcaatgagcagcagaggcgcagctgagatccacaagctgaacctggtcccca
gggataatttctttagcccctgtagtgtttaaaaaattgggccagcatttacaagcagga
tatcccaagtggttggttgattttggtaaacagaaagatcttgccacacatcctggccat
tctgggctgaccgcagtcatccacctgagaccagataagtgttgtcctgttcaatgcagc
cactcaaaccagttcaatgcagtccagttcaatgcagtttcctatcacctctccaacttc
cagggcagccattgactgcagtttatttccatgctggaagttttacttgtgtcaaaaaac
atacctctgaaaccgaaacttataccaaaagaagaaaaaatatgtagggcttcatgattt
tactacatggactgacagaaccctgagtttacgagctttgggctatgctcagtttaaaat
acatgcctcgcttccttccttccttccttccttccttccttccttccttccttccttcct
tctttccttccttcttcccttctcttccttcctccctccatccctcccttccttccttcc
ttccctccttccttccttccttctttccttcctttctctccttccttcctccttctctct
tctcttttttcttttcttccctgaaagagtctctctgttacccaggtatggtgtataata
catgctaacaccaccacacccagctaattttttaatttctattttgaagaaatgagatct
tgccatcttgcccaggctggtctctaactcctggcctcaagtgatcctcctgcttcagcc
tcctaaagcattgggattgcaggcatgagccacctagcccagttaagtacaccttttcct
agttctgtcaacaatctcacaaagctggcatccagaaccctcctttaggtgaggatcctt
gagttaagaggcgttgagggacttggccaaggttaaataactagaagtagacacagcctg
tgaagataacatctcatccagcgcaggcatccccataaattgcattcccacccacacacc
accagtgtgttcatttgtacaggatgtgtgacctgacacaacagcccttgtgtaatctga
cacattcccattaggtagcgacataaaccaacaaagctttccaggacaatgcctttgtgg
aaattggttttcttgcattactagggattttaaggcacaacaggttttcccttctttctg
tctctcaaaaaaaaaaaaaaaaaaaaagtcctttcaatacccaatattgcatggctttca
tcggaggcataaaatgaaatttgccataatccattgcctagggagaaagtcgtatgtgtg
tgtcacaactgacatctgttaaattaaataagcaagcaataagaaggtctgaaatatgtt
ctttcttcaggaattc

Results:

         U df p.value 
12  304.68  9       0 
13   68.76  9       0 
123  64.66 27       0 
all 438.10 45       0