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

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

1 2 |

`object` |
an object of class |

`which` |
character; should the response or predictor scores be
plotted. Can be specified in several ways: |

`...` |
arguments to be passed to other methods. |

A list with the following components:

`Y ` |
the fitted values for the “response” matrix. |

`X ` |
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. |

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!

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

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

The model fitting function `coca`

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ```
## 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
## fitted values for beetles only
beetle.fit <- fitted(bp.sym, which = "y1")
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.