enrique Dallazuanna
> Sent: Tuesday, January 29, 2008 9:15 AM
> To: nalluri pratap
> Cc: r-help@r-project.org
> Subject: Re: [R] Form Pairs of Variables for a paired t-test
>
> Try this:
>
> lapply(apply(combn(ncol(x),2), 2, function(y)x[,y]),
> function(z)t.test(z[,1], z[,2])
Thanks a lot! Its working fine
Pratap
Henrique Dallazuanna <[EMAIL PROTECTED]> wrote:
Try this:
lapply(apply(combn(ncol(x),2), 2, function(y)x[,y]),
function(z)t.test(z[,1], z[,2]))
On 29/01/2008, nalluri pratap
wrote:
> Hi Users,
>
> This is regarding the paired t-test. I have 5 variab
Try this:
lapply(apply(combn(ncol(x),2), 2, function(y)x[,y]),
function(z)t.test(z[,1], z[,2]))
On 29/01/2008, nalluri pratap <[EMAIL PROTECTED]> wrote:
> Hi Users,
>
> This is regarding the paired t-test. I have 5 variables (say)
> Data$v1,Data$v2,Data$v3,Data$v4,Data$v5 in my data frame. Now
Hi Users,
This is regarding the paired t-test. I have 5 variables (say)
Data$v1,Data$v2,Data$v3,Data$v4,Data$v5 in my data frame. Now, I need to
perform a paired t-test on all the possible 10 pairs.How do I set up the pairs
table directly and pass those variables in to t-test.
Thanks
4 matches
Mail list logo