ridgeregression: Ridge regression

View source: R/ridgeregression.R

ridgeregressionR Documentation

Ridge regression

Description

Ridge regression

Usage

ridgeregression(Tt, especie, E, EspecieMaxima, seed = NULL)

Arguments

Tt

Number of time points available

especie

Matrix that contains at row i the bacterial taxa of bacteria i at all time points. The bacteria placed in the last row of the matrix will be used as reference in the alr transformation and will be at the denominator of the balance.

E

Number of bacteria available.

EspecieMaxima

Row in which the bacteria used as reference is in especie. This is the bacteria that is going to be at the denominator of the balance and the denominator of the alr transformation. As a result, in this function, EspecieMaxima must be equal to E

seed

Number. Set a seed. Default seed=NULL.

Value

Returns the result of the ridge regression, object of class "ridgelm".

Examples



set.seed(123)
especie=t(gtools::rdirichlet(10,c(1,3,1,2,4)))
Tt=10
E=5
EspecieMaxima=5

ridgeregression(Tt,especie, E, EspecieMaxima, 558562316)



CoDaLoMic documentation built on April 12, 2025, 2:18 a.m.