Learn R Programming

fdANOVA (version 0.1.3)

summary.fanovatests: Print "fanovatests" object

Description

Prints the summary of the FANOVA tests.

Usage

# S3 method for fanovatests
summary(object, ...)

Arguments

object

an "fanovatests" object.

...

additional arguments not used.

Author

Tomasz Gorecki, Lukasz Smaga

Details

The function prints out the information about the data, the values of test statistics, the p-values and used parameters for the FANOVA tests performed by the fanova.tests function.

See Also

fanova.tests, print.fanovatests

Examples

Run this code
# This example may run some time.

# gait data (the first feature)
library(fda)
gait.data.frame <- as.data.frame(gait)
x.gait <- as.matrix(gait.data.frame[, 1:39])

# vector of group labels
group.label.gait <- rep(1:3, each = 13)
# \donttest{
# all FANOVA tests with default parameters
set.seed(123)
fanova1 <- fanova.tests(x.gait, group.label.gait)
summary(fanova1)# }
# \dontshow{
# only three tests with non-default parameters
fanova2 <- fanova.tests(x.gait, group.label.gait,
                        test = c("FP", "GPF", "Fmaxb"),
                        params = list(paramFP = list(int = c(0.025, 0.975),
                                                     B.FP = 3, basis = "b-spline",
                                                     criterion = "eBIC",
                                                     commonK = "mean",
                                                     minK = 5, maxK = 19,
                                                     norder = 4, gamma.eBIC = 0.7),
                                      paramFmaxb = 3))
summary(fanova2)# }

Run the code above in your browser using DataLab