Basic Compositional Data Analysis Functions

Functions for Basic CoDA manipulation of matricies.

miniclo()

Closure operator

glr() glrInv() create_alr_base() alr() alrInv() create_default_ilr_base() ilr() ilrInv() create_clr_base() clr() clrInv()

Log-Ratio Transformation

ilrvar2phi() ilrvar2ilrvar() ilrvar2clrvar() clrvar2ilrvar() clrvar2varmat() ilrvar2varmat() alrvar2clrvar() clrvar2alrvar() alrvar2alrvar() alrvar2ilrvar() ilrvar2alrvar() alrvar2varmat()

Convert CoDA covariance matricies between representations

eu2logfoldchange()

Calculate Equilvalent Log Fold Change for Given Change in Evidence Information

Array Compositional Data Analysis Functions

Functions for manipulating Arrays using CoDA Transforms

miniclo_array()

Closure Operation applied to array on margin

glr_array() glrInv_array() alr_array() alrInv_array() ilr_array() ilrInv_array() clr_array() clrInv_array()

Log-Ratios Transforms for Arrays

Tidy Handling of Arrays

Functions for converting arrays between tidy and wide formats

gather_array()

Gather Multidimensional Array to Tidy Tibble

spread_array()

Spread data.frame

Quick Transforms and Functions for Preparing data for modeling

Logit()

Logit Transformation of Vector

invLogit()

Inverse Logit Transformation of Vector

center()

Center matrix (subtract row mean from each row)

onehot()

One Hot Encoding of vector

Tidy Bayesian Functions

summarise_posterior()

Shortcut for summarize variable with quantiles and mean

Probability Distributions

rUnifSphere() rUnifSimplex()

Sample Uniformily from various objects centered at the origin

Other Assorted Functions

add_array_dim()

Add 1 dimension to array

split_along_dim()

Split Multidimeninal array to a list along a specified dimension

bdiag()

Create Block Diagonal Matrix from Passed Matricies

any_cases_array() all_cases_array()

Test for any/all non-NA along margin

dmode()

Mode of a vector x

lower_triangle_factors()

Vector to lower diagonal of matrix formed from factor by factor

vec_to_mat()

Check if Vector and if so, Convert to Row Matrix

array_apply_1D_function()

Apply Function to 1 dimension of array along all others