Re: [R] Making Sure your matrices are even

2013-08-13 Thread David Carlson
Texas AM University College Station, TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Docbanks84 Sent: Monday, August 12, 2013 5:31 PM To: r-help@r-project.org Subject: [R] Making Sure your matrices are even Hi, I am trying

Re: [R] Making Sure your matrices are even

2013-08-13 Thread Docbanks84
Thank you David. I had to sort the data afterwards for it to work: S-1:86 B-1:15 V-1:45 S2 - data.frame(Group=rep(S, length(S)), Cat=factor(S)) B2 - data.frame(Group=rep(B, length(B)), Cat=factor(B)) V2 - data.frame(Group=rep(V, length(V)), Cat=factor(V)) table(rbind(S2, B2, V2))

[R] Making Sure your matrices are even

2013-08-12 Thread Docbanks84
Hi, I am trying to do a chi sqaure on a set of values, and my different groups are not even. Is there away to add arbetrary symbols or #s to make the matrices even? Or do I need to do a different type of pvalue analysis? S-1:86 B-1:15 V-1:45 table(S) S 1 2 3 4 5 6 7 8 9 10 11 12 13