Re: [R] calculating p-values of columns in a dataframe

2007-07-09 Thread Thomas Pujol
Uwe- thanks. After a little trial and error, I created these two very simple custom functions that calculate the t.stat and p.value of columns in a dataframe. I think they work correctly and as intended. I welcome comments critiques. myfn.t.stat - function(df) { apply(df,2,function(x)

Re: [R] calculating p-values of columns in a dataframe

2007-07-08 Thread Uwe Ligges
Thomas Pujol wrote: I have a dataframe (mydf) that contains differences of means. I wish to test whether these differences are significantly different from zero. Below, I calculate the t-statistic for each column. What is a good method to calculate/look-up the p-value for each column?

[R] calculating p-values of columns in a dataframe

2007-07-07 Thread Thomas Pujol
I have a dataframe (mydf) that contains differences of means. I wish to test whether these differences are significantly different from zero. Below, I calculate the t-statistic for each column. What is a good method to calculate/look-up the p-value for each column?