vlr: Calculate Log-ratio Variance

Description Usage Arguments Value Author(s) Examples

View source: R/vlr.R

Description

This function calculates the log-ratio variance for all components in a matrix.

Usage

1
vlr(x, alpha = NA)

Arguments

x

A matrix with rows as samples (N) and columns as components (D).

alpha

A double. Defines a hyper-parameter used by the Box-Cox transformation to approximate log-ratio variance in the presence of zeros. Skip with NA.

Value

A VLR matrix.

Author(s)

Thom Quinn

Examples

1
2
3
4
library(balance)
data(iris)
x <- iris[,1:4]
vlr(x)

tpq/balance documentation built on Aug. 6, 2021, 10:45 p.m.