sample_MCMCfit: Random sample of the parameters of a FitInactivationMCMC...

View source: R/predict_MCMC.R

sample_MCMCfitR Documentation

Random sample of the parameters of a FitInactivationMCMC object

Description

Function to be called by predict_inactivation_MCMC. Produces a random sample of the parameters calculated on the iterations of the Monte Carlo simulation.

Usage

sample_MCMCfit(MCMC_fit, times, n_simulations)

Arguments

MCMC_fit

An object of class FitInactivationMCMC as generated by fit_inactivation_MCMC.

times

numeric vector specifying the time points when results are desired. If NULL, the times in MCMC_fit$best_prediction are used.

n_simulations

a numeric indicating how many Monte Carlo simulations to perform.

Value

Returns a list with 4 components.

  • par_sample: data frame with the parameter sample.

  • simulation_model: model key for the simulation

  • known_pars: parameters of the model known

  • times: points where the calculation is made.


albgarre/bioinactivation documentation built on Nov. 27, 2022, 9:19 a.m.