PBalancePredi: Calculating balances for a composition

View source: R/PBalancePredi.R

PBalancePrediR Documentation

Calculating balances for a composition

Description

This function calculates the balance that has at the numerator de bacteria placed at Num and has at the denominator the bacteria placed at Dem

Usage

PBalancePredi(Num, Dem, DatosEsperanzas)

Arguments

Num

vector that contains the position in the matrix especies of the families that we position at the numerator of the balance.

Dem

vector that contains the position in the matrix especies of the families that we position at the denumerator of the balance

DatosEsperanzas

Vector with a coda composition. The bacteria are in the same orden than the matrix especie

Value

Returns the value of the balance

Examples


Num=c(1,2)
Dem=c(3,4)
DatosEsperanzas=c(0.1,0.3,0.4,0.2)

PBalancePredi(Num,Dem,DatosEsperanzas)


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