ano.difference {agce}R Documentation

Performs a simple anova on a vector of measurement (or differences).

Description

This function is a particular case of the manova.growth, the manova reduces to an ANOVA when the matrix of measurement is a vector. If an initial time is specified (see initial), the anova is performed on the differences and rates of growth might be computed.

Usage

ano.difference(data, initial=NULL, final="last", C=NULL, U=NULL, normal=TRUE, B=100, rate=TRUE,time=NULL)

Arguments

data The data matrix or data frame, where the first column correspond to the group ids, the second to the animal ids, the remaining columns are the measurements at each time.
initial An integer corresponding to the index of the initial time. If initial is specified, the anova is performed on the differences. Otherwise only the 'final' measurements are used.
final An integer corresponding to the index of the final time. By default final is equal to "last" which correspond to the last measurement.
C The left contrast matrix. Default to the matrix to test equal means in each group.
U The right contrast matrix. Default to the identity.
normal A logical value, if normal is true the standard deviations of the rates are computed based on normal assumption of the measurements, otherwise computed by bootstraping. Default to TRUE.
B A numeric value, the number of bootstraps. Only used if normal is FALSE.
rate A logical value, if TRUE, the rates are computed. Default to TRUE. The rate can not be computed if initial is not specified.
time A vector of numeric values corresponding to the time points at which the measurements were effectued. Time is absolutely required.

Value

Ftest The value of the F-test used to test the hypothesis based on C and U.
df1 The numerator degrees of freedom for the F-test
df2 The denominator degrees of freedom for the F-test
p The p-value associated to the F-test
mean The estimate of the mean
std.mean The standard deviation associated to the mean
rate The rate of growth. Set to NULL if rate is FALSE
std.rate The standard deviation of the rates. Set to NULL if rate is FALSE

Author(s)

Raphael Gottardo

See Also

manova.growth,growth.curve

Examples

data(Bt20)
ano.difference(Bt20, initial=1, final="last", C=NULL, U=NULL, normal=TRUE, rate=TRUE,time=c(0,3,7,10,14,16))

[Package agce version 1.2 Index]