Balance {CoDaLoMic} | R Documentation |
Calculating the balance of the FBM model
Description
Defining a balance where we compare all the bacteria (except the one chosen as reference and the especieI
) with the one chosen as reference.
Usage
Balance(A, especieI, especie, E, EspecieMaxima)
Arguments
A |
Number of time points for which we calculate the balance |
especieI |
Number. The bacteria that we do not include in the balance. We must write the number of the row in which the bacteria 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 vector with the value of the balance for all the time points indicated.
Examples
Balance(2,2,cbind(c(0.1,0.1,0.8),c(0.2,0.1,0.7)),3,3)
[Package CoDaLoMic version 0.1.1 Index]