R/mlr.R

Defines functions mlr

Documented in mlr

mlr <- function(x) {
  d <- dim(x)[2] - 1
  x <- t(x)
  t( log( x[1:d, ] / ( 1 - Rfast::colCumSums(x)[1:d, ] ) ) )
}

Try the Compositional package in your browser

Any scripts or data that you put into this service are public.

Compositional documentation built on Oct. 9, 2024, 5:10 p.m.