compare_phylosem {phylosem} | R Documentation |
Compare phylogenetic structural equation models
Description
Fits several phylogenetic structural equation model for further comparison
Usage
compare_phylosem(
sem_set,
tree,
data,
family = rep("fixed", ncol(data)),
covs,
estimate_ou = FALSE,
estimate_lambda = FALSE,
estimate_kappa = FALSE,
control = phylosem_control(),
...
)
Arguments
sem_set |
A named list of structural equation model specifications,
where each element will be passed as argument |
tree |
phylogenetic structure, using class |
data |
data-frame providing variables being modeled. Missing values are inputted
as NA. If an SEM includes a latent variable (i.e., variable with no available measurements)
then it still must be inputted as a column of |
family |
Character-vector listing the distribution used for each column of |
covs |
optional: a character vector of one or more elements, with each element
giving a string of variable names, separated by commas. Variances and covariances
among all variables in each such string are added to the model. For confirmatory
factor analysis models specified via |
estimate_ou |
Boolean indicating whether to estimate an autoregressive (Ornstein-Uhlenbeck)
process using additional parameter |
estimate_lambda |
Boolean indicating whether to estimate additional branch lengths for
phylogenetic tips (a.k.a. the Pagel-lambda term) using additional parameter |
estimate_kappa |
Boolean indicating whether to estimate a nonlinear scaling of branch
lengths (a.k.a. the Pagel-kappa term) using additional parameter |
control |
Output from |
... |
Additional arguments passed to |
Value
An object (list) of class 'compare_phylosem', containing a list of
output from phylosem