Re: [R] t-test for multiple variables

2008-07-19 Thread Simon Anders
Hi Henning, Henning Wildhagen wrote: i tried your code, but it results in an error: "error in var(x) : `x` is empty" Do you have an idea what the reason might be? If you ask questions on this list, please provide some code snippets, which the others can copy and paste to reproduce your error

Re: [R] t-test for multiple variables

2008-07-18 Thread Henning Wildhagen
ders <[EMAIL PROTECTED]> > An: Henning Wildhagen <[EMAIL PROTECTED]> > CC: r-help@r-project.org > Betreff: Re: [R] t-test for multiple variables > > Hi Henning, > > Henning Wildhagen wrote: > > Given a dataframe of three columns, where col1 is of

Re: [R] t-test for multiple variables

2008-07-18 Thread Simon Anders
Hi Henning, Henning Wildhagen wrote: Given a dataframe of three columns, where col1 is of type factor, col 2 and col3 are numeric and pairs of observations i would like to perform a paired t-test for each level of col1. I would like to avoid specifying the levels of col1 manually because it se

[R] t-test for multiple variables

2008-07-18 Thread Henning Wildhagen
Dear list, i try to do my first statistics with R. Given a dataframe of three columns, where col1 is of type factor, col 2 and col3 are numeric and pairs of observations i would like to perform a paired t-test for each level of col1. I would like to avoid specifying the levels of col1 manually