R/alfa.boruta.R

Defines functions alfa.boruta

Documented in alfa.boruta

alfa.boruta <- function(y, x,  a = seq(-1, 1, by = 0.1), runs = 100 ) {
  mod <- list()
  if ( min(x) == 0 )  a <- a[a > 0]
  for ( k in 1:length(a) ) {
    z <- Compositional::alfa(x, a[k])$aff
    z <- as.data.frame(z)
    mod[[ k ]] <- Boruta::Boruta(y ~ z, pValue = 0.05, maxRuns = runs)
  }
  names(mod) <- paste("alpha=", a, sep = "")
  mod
}

Try the CompositionalML package in your browser

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

CompositionalML documentation built on June 22, 2024, 11:20 a.m.