tree.builder: A superfunction to estimate correlations and relationships...

View source: R/tree.builder.R

tree.builderR Documentation

A superfunction to estimate correlations and relationships among variables in a data set.

Description

This function estimates a Spearman's correlation matrix, an abs(distance matrix), a hclust tree, a PCA from the correlation matrix, and numerous estimates of the effective number of variables in a data set (Me)

Usage

tree.builder(
  wdata,
  cor_method = "spearman",
  dist_method = "R",
  hclust_meth = "complete",
  cmat = NULL
)

Arguments

wdata

a data.frame of the variable data used to build your cormat and hclust tree, the variables should be in columns, samples in rows.

cor_method

the correlation method used to construct the correlation matrix

dist_method

the distance method to generate the distance matrix

hclust_meth

the clustering method used by hclust

cmat

a correlation matrix you can pass to the function, which will skip the generation of a new matrix.

Examples

tree.builder()

hughesevoanth/iPVs documentation built on July 26, 2023, 3:21 p.m.