R/comp.kern.R

Defines functions comp.kern

Documented in comp.kern

comp.kern <- function(x, type = "alr", h = NULL, thumb = "silverman") {
  if (type == "alr") {  ## additive log-ratio transformation
    y <- Compositional::alr(x)
  } else  y <- alfa(x, 0)$aff
  Compositional::mkde(y, h = h, thumb = thumb)
}

Try the Compositional package in your browser

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

Compositional documentation built on Oct. 23, 2023, 5:09 p.m.