Description Usage Arguments Details Value References See Also Examples
Fit a primary tree of component clustering to observed assemblage performances, then prune the primary tree for its predicting ability and its parcimony, finally retain a validated secondary tree and the corresponding predictions, statistics and other informations.
1 2 3 4 5 6 7 8 9 |
dat |
a data.frame or matrix that brings together:
a vector of assemblage identity,
a matrix of occurrence of components within the system,
one or more vectors of observed performances.
Consequently, the data.frame or matrix dimensions are:
|
nbElt |
an integer, that specifies the number of components
belonging to interactive system.
|
weight |
a vector of numerics,
that specifies the weight of each performance.
By default, each performance is equally weighted.
If |
opt.na |
a logical.
The records for each assemblage can have |
opt.repeat |
a logical.
in any case, the function looks for
different assemblages with identical elemental composition.
Messages indicate these identical assemblages.
If |
opt.method |
a string that specifies the method to use.
If If If |
affectElt |
a vector of characters or integers,
as long as the number of components If |
opt.mean |
a character, equals to |
opt.model |
a character equals to If |
opt.jack |
a logical, that switchs towards cross-validation method. If If |
jack |
an integer vector of length |
see Vignette "The options of fclust".
Return a list containing the primary tree of component clustering, predictions of assembly performances and statistics computed by using the primary and secondary trees of component clustering.
Recall of inputs:
nbElt, nbAss, nbXpr
:
the number of components that belong to the interactive system,
the number of assemblages and the number of performances observed,
respectively.
opt.method, opt.mean, opt.model, opt.jack, jack, opt.na,
opt.repeat, affectElt
: the options used
for computing the resulting clustering trees,
respectively.
fobs, mOccur, xpr
:
the vector or matrix of observed performances of assemblages,
the binary matrix of occurrence of components, and
the vector of weight of different performances,
respectively.
Primary and secondary, fitted and validated trees, of component clustering and associated statistics:
tree.I, tree.II, nbOpt
:
the primary tree of component clustering,
the validated secondary tree of component clustering,
and the optimum number of functional clusters,
respectively.
A tree is a list of a square-matrix of dimensions
nbLev * nbElt
(with nbLev = nbElt
),
and of a vector of coefficient of determination (of length nbLev
).
mCal, mPrd, tCal, tPrd
:
the numeric matrix of modelled values,
and of values predicted by cross-validation,
using the primary tree (mCal
and (mPrd
)
or the secondary tree (tCal
and (tPrd
), respectively.
All matrices have the same dimension nbLev * nbAss
.
rownames
contains the number of component clusters,
that is from 1
to nbElt
clusters.
colnames
contains the names of assemblages.
mMotifs, tNbcl
: the matrix
of affectation of assemblages to different assembly motifs,
coded as integers, and the matrices of the last tree levels
used for predicting assemblage performances.
All matrices have the same dimension nbLev * nbAss
.
rownames
contains the number of component clusters,
that is from 1
to nbElt
clusters.
colnames
contains the names of assemblages.
mStats, tStats
: the matrices of associated statistics.
rownames
contains the number of component clusters,
that is from 1 to nbElt clusters.
colnames = c("missing", "R2cal", "R2prd", "AIC", "AICc")
.
Jaillard, B., Richon, C., Deleporte, P., Loreau, M. and Violle, C. (2018)
An a posteriori species clustering
for quantifying the effects of species
interactions on ecosystem functioning.
Methods in Ecology and Evolution, 9:704-715.
https://doi.org/10.1111/2041-210X.12920.
Jaillard, B., Deleporte, P., Loreau, M. and Violle, C. (2018) A combinatorial analysis using observational data identifies species that govern ecosystem functioning. PLoS ONE 13(8): e0201135. https://doi.org/10.1371/journal.pone.0201135.
fclust
: build a functional clustering,
fclust_plot
: plot the results of a functional clustering,
fclust_write
: save the results of a functional clustering,
fclust_read
: read the results of a functional clustering.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Enable the comments
oldOption <- getOption("verbose")
if (!oldOption) options(verbose = TRUE)
nbElt <- 16 # number of components
# index = Identity, Occurrence of components, a Performance
index <- c(1, 1 + 1:nbElt, 1 + nbElt + 1)
dat.2004 <- CedarCreek.2004.2006.dat[ , index]
res <- fclust(dat.2004, nbElt)
names(res)
res$tree.II
options(verbose = oldOption)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.