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)
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?
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?