Table_alr_Dirich_glv: Obtainig a table with the interpretable parameters

View source: R/Table_alr_Dirich_glv.R

Table_alr_Dirich_glvR Documentation

Obtainig a table with the interpretable parameters

Description

This function returns a table with the interpretable parameters of the Dirich-gLV model.

Usage

Table_alr_Dirich_glv(Param.Estimates, especie, names, E)

Arguments

Param.Estimates

Vector with the estimates parameters. It is equal to c(tau,as.vector( pam)) where:

  • pam Matrix. Each row has the parameters of each bacteria. Following our example, pam has the parameters placed as follows:

    r1 a11 a12
    r2 a21 a22
  • tau Number. Value of the tau parameter in the model

especie

Matrix that contains at row i the bacterial taxa of bacteria i at all time points. The bacteria placed in the last row of this matrix is the one used as reference in the alr transformation that the model applies.

names

Vector with the name of the bacteria in the same order than are present in the especie matrix.

E

Number of bacteria available.

Details

In an example with three bacteria, the regression of this model is defined by

r_{1}\cdot log(x_{1}(t)/x_{3}(t))+log(x_{1}(t)/x_{3}(t))\cdot [a_{11}\cdot log(x_{1}(t)/x_{3}(t))(t)+a_{12}\cdot log(x_{2}(t)/x_{3}(t))]

r_{2}\cdot log(x_{2}(t)/x_{3}(t))+log(x_{2}(t)/x_{3}(t))\cdot [a_{21}\cdot log(x_{1}(t)/x_{3}(t))(t)+a_{22}\cdot log(x_{2}(t)/x_{3}(t))]

Value

Returns a table written in latex format with the matrix pam.

References

Creus-Martí, I. and Moya, A. and Santonja, F. J. (2018). A Statistical Model with a Lotka-Volterra Structure for Microbiota Data. Lucas Jodar, Juan Carlos Cortes and Luis Acedo, Modelling or engineering and human behavior 2018, Instituto Universitario de Matematica Multidisciplinar. ISBN: 978-84-09-07541-6

Examples



pam.ini=rbind(c(0.1,0.2,0.3),c(0.4,0.5,0.6))
paramEstimadosFinal=c(5, as.vector(pam.ini))
E=3
especie=cbind(c(0.2,0.4,0.4),c(0.1,0.1,0.8),c(0.5,0.1,0.4))
names=c("a","b","c")

Table_alr_Dirich_glv(paramEstimadosFinal,especie,names,E)


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