B1MODImatrizP {CoDaLoMic} | R Documentation |
Ridge regression matrix
Description
Defining the part of the ridge regression matrix that carries the information of the bacteria especieII
.
Usage
B1MODImatrizP(Tt, especieII, especie, E, EspecieMaxima)
Arguments
Tt |
Number of time points available |
especieII |
Number. The number of the row in which the bacteria that we want to use is placed in the matrix |
especie |
Matrix that contains at row i the bacterial taxa of bacteria i at all time points. |
E |
Number of bacteria available |
EspecieMaxima |
Row in which the bacteria chosen as reference is in |
Value
Returns a matrix. The first column contain the number 1 repeated Tt
times. The second column contains
the alr transformation of the especieII
in all time points. The third column
contains the balance (whose numerator has all the bacteria except especieII
and EspecieMaxima
and the denominator
contains the EspecieMaxima
) in all time points.
Examples
Tt=2
especie1=cbind(c(0.5,0.3,0.2), c(0.1,0.3,0.6))
especieII=1
E=3
EspecieMaxima=3
B1MODImatrizP(Tt, especieII,especie1, E, EspecieMaxima)