weights: Exctract CoCA model weights

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

Description

Extractor function to identify and select appropriate analysis weights from Co-correspondence Analysis models.

Usage

1
2
3
4
5
## S3 method for class 'symcoca'
weights(object, ...)

## S3 method for class 'predcoca'
weights(object, ...)

Arguments

object

an object of class "symcoca" or "predcoca".

...

arguments passed to other methods. Not used.

Value

A numeric vector of common site weights is currently returned. These correspond to R[0] in ter Braak and Schaffers (2004).

Author(s)

Gavin L. Simpson

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

envfit.coca uses these weights to estimate weighted correlations in ordination space. See coca for details on creating CoCA models.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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")

## weights == R[0]
weights(bp.sym)


cocorresp documentation built on May 20, 2017, 12:55 a.m.
Search within the cocorresp package
Search all R packages, documentation and source code

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

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

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