| as.data.frame-method {FLEDA} | R Documentation |
Implements the cor method for class "FLQuant".
quant is).FLQuant between ages (or whatever quant is).
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.
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)