Re: [R] help please. 2 tables, which test?

2012-03-13 Thread Greg Snow
For this case I would use a permutation test. Start by choosing some statistic that represents your 4 students across the different grades, some possibilities would be the sum of scores across grades and students, or mean, or median, or ... Compute the selected statistic for your 4 students and

Re: [R] help please. 2 tables, which test?

2012-03-10 Thread aoife doherty
Thank you for the replies. So what my test wants to do is this: I have a big matrix, 30 rows (students in a class) X 50 columns (students grades for the year). An example of the matrix is as such: grade1 grade2grade3 . grade 50 student 1 student 2***

Re: [R] help please. 2 tables, which test?

2012-03-09 Thread Greg Snow
The chi-squared test is one option (and seems reasonable to me if it the the proportions/patterns that you want to test). One way to do the test is to combine your 2 matrices into a 3 dimensional array (the abind package may help here) and test using the loglin function. On Thu, Mar 8, 2012 at

Re: [R] help please. 2 tables, which test?

2012-03-09 Thread aoife doherty
Thank you. Can the chi-squared test compare two matrices that are not the same size, eg if matrix 1 is a 2 X 4 table, and matrix 2 is a 3 X 5 matrix? On Fri, Mar 9, 2012 at 4:37 PM, Greg Snow 538...@gmail.com wrote: The chi-squared test is one option (and seems reasonable to me if it the the

Re: [R] help please. 2 tables, which test?

2012-03-09 Thread R. Michael Weylandt
You should probably read up on what the chi-squared test actually tests: in one form, it asks whether some set of observations could have come from a given multinomial distribution. Concretely, it asks whether it is reasonable to get 3 blues, 4 reds, and 2 whites from a uniform distribution over

Re: [R] help please. 2 tables, which test?

2012-03-09 Thread S Ellison
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of aoife doherty Thank you. Can the chi-squared test compare two matrices that are not the same size, eg if matrix 1 is a 2 X 4 table, and matrix 2 is a 3 X 5 matrix? No.

Re: [R] help please. 2 tables, which test?

2012-03-09 Thread Greg Snow
Just what null hypothesis are you trying to test or what question are you trying to answer by comparing 2 matrices of different size? I think you need to figure out what your real question is before worrying about which test might work on it. Trying to get your data to fit a given test rather

[R] help please. 2 tables, which test?

2012-03-08 Thread aaral singh
Hi.Please help if someone can. Problem: I have 2 matrices Eg matrix 1: Freq None Some Heavy32 5 Never8 13 8 Occas14 4 Regul 95 7 matrix 2: Freq None Some