sample_IsoFit {bioinactivation} | R Documentation |
Function to be called by predict_inactivation_MCMC
. Produces
a random sample of the parameters adjusted from isothermal experiments.
sample_IsoFit(iso_fit, times, n_simulations)
iso_fit |
An object of class |
times |
numeric vector specifying the time points when results are
desired. If |
n_simulations |
a numeric indicating how many Monte Carlo simulations to perform. |
It is assumed that the parameters follow a Multivariate Normal distribution
with the mean and covariance matrix estimated by the adjustment. The function
produces a random sample using the function mvrnorm
.
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.