[R] a bug with Student t-value??

2009-11-07 Thread huaru wang
Hello, every one, Using the qt() function in R, I got a different Student t-value with the Student t table. e.g. the return value of function qt(0.95,9) is 1.833, while in table it is 2.262. I do not know why the difference exists. I guess it may be a bug in R. -- Íõ»¯Èå ²©Ê¿Ñо¿Éú

Re: [R] a bug with Student t-value??

2009-11-07 Thread Sunny Srivastava
Hi Huaru, Are you sure you are looking at 0.95 and NOT 0.975? as qt(0.975,9) = 2.262 generally tables are given for alpha/2 (alpha=0.05 in your case) significance. Please check carefully. Thx, S. On Sat, Nov 7, 2009 at 4:02 AM, huaru wang huaru.w...@gmail.com wrote: Hello, every one,

Re: [R] a bug with Student t-value??

2009-11-07 Thread huaru wang
Hi, Sunny, Sorry for my mistake. Thank you for your correction. Thx, Huaru 2009/11/7 Sunny Srivastava research.b...@gmail.com Hi Huaru, Are you sure you are looking at 0.95 and NOT 0.975? as qt(0.975,9) = 2.262 generally tables are given for alpha/2 (alpha=0.05 in your case)

Re: [R] a bug with Student t-value??

2009-11-07 Thread Ted Harding
On 07-Nov-09 09:02:38, huaru wang wrote: Hello, every one, Using the qt() function in R, I got a different Student t-value with the Student t table. e.g. the return value of function qt(0.95,9) is 1.833, while in table it is 2.262. I do not know why the difference exists. I guess it may

Re: [R] a bug with Student t-value??

2009-11-07 Thread Peter Dalgaard
Sunny Srivastava wrote: Hi Huaru, Are you sure you are looking at 0.95 and NOT 0.975? as qt(0.975,9) = 2.262 generally tables are given for alpha/2 (alpha=0.05 in your case) significance. Please check carefully. Or, put differently, tables are often given for two-sided p-values (especially