Class and methods to handle Phylogenetic Eigenvector Maps (PEM).
# S3 method for PEM
print(x, ...)
# S3 method for PEM
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
# S3 method for PEM
predict(object, targets, lmobject, newdata,
interval = c("none", "confidence", "prediction"), level = 0.95, ...)A PEM-class object containing a Phylogenetic
Eigenvector Map.
Included for method consistency reason; ignored.
Included for method consistency reason; ignored.
A PEM-class object.
Output of getGraphLocations.
An object of class ‘lm’ (see
lm for details).
auxiliary trait values
The kind of limits (confidence or prediction) to
return with the predictions. interval="none": do not return a
confidence interval.
Probability of the confidence of prediction interval.
Further parameters to be passed to other functions or methods (currently ignored).
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 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,
and
the right singular vectors of BcW.
the variance(s) of the response(s),
a copy of the response(s), and
the list returned by optim,
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.
Gu<U+00E9>nard, G., Legendre, P., and Peres-Neto, P. 2013. Phylogenetic eigenvector maps (PEM): a framework to model and predict species traits. Meth. Ecol. Evol. In press.