Learn R Programming

ddtlcm (version 0.2.1)

create_leaf_cor_matrix: Create a tree-structured covariance matrix from a given tree

Description

Retrieve the covariance matrix of leaf nodes of a DDT tree

Usage

create_leaf_cor_matrix(tree_phylo4d)

Value

a K by K covariance matrix

Arguments

tree_phylo4d

a "phylo4d" object

Examples

Run this code
# load the MAP tree structure obtained from the real HCHS/SOL data
data(data_synthetic)
# extract elements into the global environment
list2env(setNames(data_synthetic, names(data_synthetic)), envir = globalenv())
create_leaf_cor_matrix(tree_with_parameter)

Run the code above in your browser using DataLab