Description Usage Arguments Format Details Functions Author(s) References See Also
Class and methods to handle Phylogenetic Eigenvector Maps (PEM).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
x |
A |
... |
Additional parameters to be passed to the method. Currently ignored. |
row.names |
Included for method consistency reason; ignored. |
optional |
Included for method consistency reason; ignored. |
object |
A |
targets |
Output of |
lmobject |
An object of class ‘lm’ (see |
newdata |
Auxiliary trait values. |
interval |
The kind of limits (confidence or prediction) to return with
the predictions; |
level |
Probability of the confidence of prediction interval. |
A PEM-class
object contains:
The graph-class
object that was used to
build the PEM (see PEM.build
).
A logical
vector specifying which vertex is
a tip.
The influence matrix for those vertices that are tips.
The number of edges.
The number of species (tips).
The column-centred influence matrix.
The column means of B
.
Edge lengths.
The steepness parameter (see PEM.build
for
details).
The relative evolution rate along the edges (see
PEM.build
for details).
Edge weights.
The weighted and column-centred influence matrix.
The singular values of BcW
.
The eigenvectors (left singular vectors) of BcW
.
The right singular vectors of BcW
.
In addition to these standard component, function,
PEM.fitSimple
and PEM.forcedSimple
add the
following members, which are necessary to make predictions:
The variances of responses (one value for each response).
A copy of the responses.
The list returned by optim
.
The estimated weighting parameters are also given as an edge property.
The print
method provides the number of eigenvectors,
the number of observations these vectors are spanning, and their associated
eigenvalues.
The as.data.frame
method extracts the eigenvectors from the
object and allows one to use PEM-class
objects as data
parameter in function such as lm
and glm
.
The predict
object is a barebone interface meant to make
predictions. It must be given species locations with respect to the
phylogenetic graph (target
), which are provided by function
getGraphLocations
and a linear model in the form of an object
from lm
. The user must provide auxiliary trait values if
lmobject
involves such trait.
print.PEM
: Print method for PEM-class objects
as.data.frame.PEM
: Method as.data.frame
for PEM-class objects
predict.PEM
: Predict method for PEM-class objects
Guillaume Guenard, with contribution from Pierre Legendre Maintainer: Guillaume Guenard <guillaume.guenard@gmail.com>
Guénard, G., Legendre, P., and Peres-Neto, P. 2013. Phylogenetic eigenvector maps (PEM): a framework to model and predict species traits. Meth. Ecol. Evol. 4: 1120–1131
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.