StrainRanking (version 1.2)

generation.alpha.3strains: Generation of parameters for the simulations under the regression model

Description

Generation of parameters of the Dirichlet distribution used to draw the proportions of three strains at each site given in a matrix of coordinates.

Usage

generation.alpha.3strains(x)

Arguments

x

[2-column matrix] Coordinates where Dirichlet parameters are drawn.

Value

Matrix of positive numerics with three columns corresponding to the number of strains that are considered and with number of rows equal to the number of sites given in x. Each row of the matrix provides the parameters of the Dirichlet distribution used to draw the proportions of three strains at each site given in x.

References

Soubeyrand S., Tollenaere C., Haon-Lasportes E. & Laine A.-L. (2014). Regression-based ranking of pathogen strains with respect to their contributions to natural epidemics. PLOS ONE 9(1): e86591.

See Also

DGobj.simul.regression

Examples

Run this code
# NOT RUN {
generation.alpha.3strains(expand.grid(1:10,1:10))
# }

Run the code above in your browser using DataCamp Workspace