View source: R/B1MODImatrizP.R
B1MODImatrizP | R Documentation |
Defining the part of the ridge regression matrix that carries the information of the bacteria especieII
.
B1MODImatrizP(Tt, especieII, especie, E, EspecieMaxima)
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 |
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.