phydo_fitGeiger: Try geiger's fitContinuous or fitDiscrete on all the...

View source: R/processdata.R

phydo_fitGeigerR Documentation

Try geiger's fitContinuous or fitDiscrete on all the continuous datasets using all geiger models

Description

Note that this ignores SE at the moment. If a character is missing information for a taxon, that taxon is deleted for just that character only.

Usage

phydo_fitGeiger(
  phydo,
  models = NULL,
  keep = c("continuous", "discrete"),
  ncores = NULL
)

Arguments

phydo

a phydo class object, with tree and data

models

which models to use. If NULL, uses all available

keep

continuous or discrete data

ncores

how many cores to use; if NULL, detects automatically

Value

A two dimensional list. The first dimension is model, the second is character

Examples

data(geospiza,package="geiger")
phydo <- match_data(geospiza$phy, geospiza$dat)
results <- phydo_fitContinuous(phydo)
# Look at model for OU for character 1
print(results[["OU"]][["wingL"]])

bomeara/chapter2 documentation built on July 22, 2023, 3:19 a.m.