Learn R Programming

Momocs (version 0.1-01)

manova.nef: Calculates MANOVA on a harmonic coefficient matrix.

Description

Calculates Multivariate Analysis of Variance (MANOVA) on the harmonic coefficient matrix contained in Nef-objects.

Usage

manova.nef(Nef, fac, harmonics.retained, drop=FALSE)

Arguments

Nef
the Nef-object
fac
a factor indicating the grouping desing
harmonics.retained
code{integer} indicating how many harmonics to include
drop
code{logical} indicating whether to drop or retain the first harmonic

Details

This function is a wrapper to calculate MANOVAs i.e. test the significance of between vs. within geometric differences between sets of shapes. If not specified, the number of harmonics retained is calculated so that it is lower than the number of individuals minus two.

Examples

Run this code
data(bottles.nef)
fac <- factor(rep(c("beer", "whisky"), each=20))
manova.nef(bottles.nef, fac=fac)

Run the code above in your browser using DataLab