Description Usage Arguments Details Value Author(s) Examples
Compute a running pooled t-test
1 2 | ttest.matrix(ctr, trt)
t.test.matrix(ctr, trt)
|
ctr |
matrix of control samples, 1 sample per column, 1 variable per row |
trt |
matrix of treatment samples, 1 sample per column, 1 variable per row |
This function applies a pooled variance t-test 'sequentially' to the control and treatment values specified in order to experimentally test the power of the t-test at various sample sizes. IE, it efficiently performs the equivalent of
1 t.test( ctr[1:2], trt[1:2] )
2 t.test( ctr[1:3], trt[1:3] )
3 t.test( ctr[1:4], trt[1:4] )
ncol(ctr)-1
t.test( ctr[1:ncol(ctr)], trt[1:ncol(trt)])
Matrix of p-values of dimension nrow(x)
by (ncol(x)-1)
Peng Liu peng\_liu@groton.pfizer.com
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.