R/comp.rf.R

Defines functions comp.rf

Documented in comp.rf

comp.rf <- function(xnew = x, y, x, type = "alr", ntrees, nfeatures, minleaf,
                    ncores = 1) {
  
  if ( type == "alr" )  y <- .alrOptimized(y)
  est <- CompositionalRF::mrf(xnew = xnew, y = y, x = x, ntrees = ntrees,
         nfeatures = nfeatures, minleaf = minleaf, ncores = ncores)
  Compositional::alrinv(est)
}

Try the CompositionalRF package in your browser

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

CompositionalRF documentation built on Sept. 9, 2025, 5:43 p.m.