get_consensus_tree: Get transformed tree

View source: R/phylogeneticCorrelations.R

get_consensus_treeR Documentation

Get transformed tree

Description

Compute the transformed tree using transf.branch.lengths.

Usage

get_consensus_tree(
  y_data,
  design,
  phy,
  model,
  measurement_error,
  weights,
  trim,
  REML,
  ddf_method,
  ncores,
  ...
)

Arguments

design

the design matrix of the experiment, with rows corresponding to samples and columns to coefficients to be estimated. Defaults to the unit vector (intercept).

phy

an object of class phylo. It must be either a tree with tips having the same names as the columns of object (including replicates), or a tree such that tip labels match with species names in 'col_species'.

model

the phylogenetic model used to correct for the phylogeny. Must be one of "BM", "lambda", "OUfixedRoot", "OUrandomRoot" or "delta". See phylolm for more details.

measurement_error

a logical value indicating whether there is measurement error. Default to TRUE. See phylolm for more details.

REML

Use REML (default) or ML for estimating the parameters.

ddf_method

the method for the computation of the degrees of freedom of the t statistics (before moderation). Default to ddf_method="Satterthwaite". If ddf_method="Species", then the number of species is taken for the computation of the degrees of freedom, while if ddf_method="Samples" the total number of individuals is used.

...

further parameters to be passed to lmFit or phylolm.

Value

The transformed tree.


pbastide/phylolimma documentation built on Nov. 17, 2024, 1:34 p.m.