Balance: Calculating the balance of the FBM model

View source: R/Balance.R

BalanceR 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.

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 especie.This bacteria is used as reference in the alr tranformation that the model does and it is placed at the denominator of the balance)

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)


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