meanT | R Documentation |
The mean-t statistic of the distance between two groups of growth curves.
meanT(y1, y2)
y1 |
matrix of response values for the first group, with a row for each individual and a column for each time. Missing values are allowed. |
y2 |
matrix of response values for the second group. Must have the same number of columns as |
This function computes the pooled two-sample t-statistic between the response values at each time, and returns the mean of these values weighted by the degrees of freedom.
This function is used by compareGrowthCurves
.
numeric vector of length one containing the mean t-statistic.
Gordon Smyth
compareGrowthCurves
, compareTwoGrowthCurves
y1 <- matrix(rnorm(4*3),4,3) y2 <- matrix(rnorm(4*3),4,3) meanT(y1,y2) data(PlantGrowth) compareGrowthCurves(PlantGrowth$group,as.matrix(PlantGrowth$weight)) # Can make p-values more accurate by nsim=10000
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.