cor-method: Correlation for class "FLQuant"

Description Methods Details See Also Examples

Description

Implements the cor method for class "FLQuant".

Methods

x="FLQuant"

This method computes correlation between ages (or whatever quant is).

x="FLQuant",y="FLQuant"

This method computes cross correlation of 2 FLQuant between ages (or whatever quant is).

Details

The cor method for one "FLQuant" can be computed between the complete vector of observed values-at-quant or can be computed between the cohort adjusted vector. The choice is made by the argument use. The first method (defined by use="all.obs") uses all observations of each two quant rows to compute cor. The second (use="complete.obs", the default) uses only the observations of each two quant rows that have a matching cohort.

This kind of analysis is trying to give a measure of the data consistency along cohorts and if the observations that have no matching cohort are left in, the correlation coeficient is contaminated by them and is no longer a good indicator.

See Also

FLQuant-class, cor

Examples

1
2
3
4
5
6
data(ple4)
c1 <- cor(catch.n(ple4), use="complete.obs", method="spearman")
round(c1,2)
c2 <- cor(catch.n(ple4), use="all.obs", method="spearman")
round(c2,2)
all.equal(c1,c2)

FLEDA documentation built on May 2, 2019, 5:26 p.m.