Re: [R] How to extract the conf.level out of t.test() data

2010-08-10 Thread Dimitris Rizopoulos
try this: x <- t.test(1:10) x$conf.int attr(x$conf.int, "conf.level") I hope it helps. Best, Dimitris On 8/9/2010 8:39 PM, Etienne Stockhausen wrote: Good afternoon everybody, I'm writing a little function to visualise hypothesis testing. Therefore I need to extract the confidence level o

Re: [R] How to extract the conf.level out of t.test() data

2010-08-10 Thread Romain Francois
Le 09/08/10 20:39, Etienne Stockhausen a écrit : Good afternoon everybody, I'm writing a little function to visualise hypothesis testing. Therefore I need to extract the confidence level of a t-test. Here a little example: x <- str(t.test(1:10) gives List of 9 $ statistic : Named num 5.74 .

[R] How to extract the conf.level out of t.test() data

2010-08-10 Thread Etienne Stockhausen
Good afternoon everybody, I'm writing a little function to visualise hypothesis testing. Therefore I need to extract the confidence level of a t-test. Here a little example: x <- str(t.test(1:10) gives List of 9 $ statistic : Named num 5.74 ..- attr(*, "names")= chr "t" $