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. 9, 2024, 5:10 p.m.