fitted.symcoca: Fitted values of a Symmetric Co-Correpsondence analysis...

Description Usage Arguments Value Note Author(s) References See Also Examples

Description

Calculates and extracts the fitted values of a Symmetric Co-Correpsondence analysis model.

Usage

1
2
## S3 method for class 'symcoca'
fitted(object, ...)

Arguments

object

an object of class "symcoca"

...

arguments to be passed to other methods.

Value

A list with the following components:

Yhat1

the fitted values for the “response” matrix.

Yhat2

the fitted values for the “predictor” matrix.

nam.dat

a vector containing the names of the “response” and “predictor” matrices respectively. Used for printing the results.

Note

This function needs an update and to allow option to restrict fitted values to specified axes, and the names of the returned objects need making more obvious!

Author(s)

Gavin L. Simpson, based on Matlab code by C.J.F. ter Braak and A.P. Schaffers.

References

Ter Braak, C.J.F and Schaffers, A.P. (2004) Co-Correspondence Analysis: a new ordination method to relate two community compositions. Ecology 85(3), 834–846

See Also

The model fitting function coca

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## symmetric CoCA
data(beetles)
data(plants)

## log transform the bettle data
beetles <- log(beetles + 1)

## fit the model
bp.sym <- coca(beetles ~ ., data = plants, method = "symmetric")

## fitted values
bp.fit <- fitted(bp.sym)
bp.fit


Search within the cocorresp package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.