Re: [R] row mean

2014-05-28 Thread arun
Eliza > Date: Tue, 27 May 2014 18:43:44 -0700 > From: smartpink...@yahoo.com > Subject: Re: [R] row mean > To: r-help@r-project.org > CC: eliza_bo...@hotmail.com > > > > Forgot, about the mean: > lapply(split(seq_len(nrow(AAA)),((seq_len(nrow(AAA))-1)%%12)+1),funct

Re: [R] row mean

2014-05-27 Thread arun
Forgot, about the mean: lapply(split(seq_len(nrow(AAA)),((seq_len(nrow(AAA))-1)%%12)+1),function(i) colMeans(AAA[i,])) A.K. On , arun wrote: Hi Eliza, May be this helps: lapply(split(seq_len(nrow(AAA)),((seq_len(nrow(AAA))-1)%%12)+1),function(i) AAA[i,]) A.K. On Tuesday, May 27, 2014

Re: [R] row mean

2014-05-27 Thread arun
Hi Eliza, May be this helps: lapply(split(seq_len(nrow(AAA)),((seq_len(nrow(AAA))-1)%%12)+1),function(i) AAA[i,]) A.K. On Tuesday, May 27, 2014 6:48 PM, eliza botto wrote: Dear R family, I have this matrix say AAA<-matrix(sample(1:240),ncol=2) I first want to combine every 13th row in both co

[R] row mean

2014-05-27 Thread eliza botto
Dear R family, I have this matrix say AAA<-matrix(sample(1:240),ncol=2) I first want to combine every 13th row in both columns. precisely, starting from row-1 1,13,25,37,49, then starting from row-2 2,14,26,38,50 also 3,15,27,39,51 and similarly starting from row 4, row number 5, row 6... ti

Re: [R] Row mean scores differ

2008-04-17 Thread Tobias Verbeke
>Suppose that we have o 2-D contingency table where the row variable is nominal >and the column one is ordinal. In SAS it is possible to compute the statistic >named as row mean scores differ. How can we programmed it in R? >(See also Aggresti (2002), Categorical Data Analysis, p. 302) There is

[R] Row mean scores differ

2008-04-17 Thread dt Excellent
Suppose that we have o 2-D contingency table where the row variable is nominal and the column one is ordinal. In SAS it is possible to compute the statistic named as row mean scores differ. How can we programmed it in R? (See also Aggresti (2002), Categorical Data Analysis, p. 302) With regards

Re: [R] Row mean scores differ association

2008-04-10 Thread Austin, Matt
D] On Behalf Of dt Excellent Sent: Thursday, April 10, 2008 1:18 PM To: R-Help Subject: [R] Row mean scores differ association Suppose that we have o 2-D contingency table where the row variable is nominal and the column one is ordinal. In SAS it is possible to compute the statistic named as row

[R] Row mean scores differ association

2008-04-10 Thread dt Excellent
Suppose that we have o 2-D contingency table where the row variable is nominal and the column one is ordinal. In SAS it is possible to compute the statistic named as row mean scores differ. How can we programmed it in R? (See also Aggresti (2002), Categorical Data Analysis, p. 302) With regards