Learn R Programming

compositions (version 2.0-4)

wrapped_functions: Standard R functions wrapped for compatibility

Description

These functions of a standard R distribution (from package "base" or "stats") are wrapped by naive functions in "compositions" with the goal to ensure their normal behavior with compositional data objects.

Usage

anova(...)
   

Value

The same as the original function from package base (i.e. search for it with `?base::anova`).

Arguments

...

arguments passed to the original function (all!)

Author

Raimon Tolosana-Delgado http://www.stat.boogaart.de

Details

The functions documented in this page are just wrapers around base functions from R that, due to a variety of reasons, need pre- or post-processing when "compositions" is loaded. Pre-processing are e.g., converting "rmult" class objects to plain "matrix" objects, or removing sticky class behaviour (see getStickyClassOption)

See Also

anova in package "base" .

Examples

Run this code
# anova:
data("Hydrochem") # load data
Z = acomp(Hydrochem[,7:19]) # select composition
Hydrochem$compo = Z # attach to dataset
md = lm(alr(compo)~log(H), data=Hydrochem) # fit model
anova(md)   # anova test

Run the code above in your browser using DataLab