tree_to_edt_data: Convert a tree and metadata into useable data for...

Description Usage Arguments Value Functions

View source: R/data_generation.R

Description

Convert a tree and metadata into useable data for hierarchical modelling

Usage

1
2
3
4
5
tree_to_edt_data(tree, metadata, scale = FALSE, justLeaves = TRUE,
  model_formula = ~group)

tree_to_ept_data_new(tree, metadata, scale = FALSE, justLeaves = TRUE,
  model_formula = ~group)

Arguments

tree

The tree containing volumes

metadata

The metadata necessary, requires SEX as the covariate.

scale

Whether or not to centre/scale the volumes

justLeaves

Whether to filter down the data to just the leaf volume (default true)

Value

a list containing the requisite data for fitting either flat models or effect diffusion models.

Functions


cfhammill/hierarchyTrees documentation built on Feb. 8, 2020, 2:54 a.m.