R/alfa.ridge.R

Defines functions alfa.ridge

Documented in alfa.ridge

alfa.ridge <- function(y, x, a, lambda, B = 1, xnew = NULL) {
  z <- Compositional::alfa(x, a, h = TRUE)$aff 
  mod <- Compositional::ridge.reg(y, z, lambda, B = B, xnew = xnew)
  mod 
}

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.