Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

distribution_to_logcount

Distribution of times to reach a certain microbial count


Description

Returns the probability distribution of the storage time required for the microbial count to reach log_count according to the predictions of a stochastic model. Calculations are done using linear interpolation of the individual model predictions.

Usage

distribution_to_logcount(model, log_count)

Arguments

model

An instance of StochasticGrowth or MCMCgrowth.

log_count

The target microbial count.

Value

An instance of TimeDistribution.

Examples

## We need an instance of StochasticGrowth

my_model <- "modGompertz"
my_times <- seq(0, 30, length = 100)
n_sims <- 3000

pars <- tribble(
    ~par, ~mean, ~sd, ~scale,
    "logN0", 0, .2, "original",
    "mu", 2, .3, "sqrt",
    "lambda", 4, .4, "sqrt",
    "C", 6, .5, "original"
)

stoc_growth <- predict_stochastic_growth(my_model, my_times, n_sims, pars)

## We can now call the function

time_distrib <- distribution_to_logcount(stoc_growth, 4)

## And plot the results

plot(time_distrib)

biogrowth

Modelling of Population Growth

v0.2.0
GPL-3
Authors
Alberto Garre [aut, cre] (<https://orcid.org/0000-0002-4404-3550>), Jeroen Koomen [aut], Heidy den Besten [aut], Marcel Zwietering [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.