Draws samples from the parameter distribution of a CompInt_model object.
Source:R/ModelStructures.R
draws_from_paramdist.Rd
This function generates draws from the parameter distribution of a CompInt_model object.
Arguments
- ndraws
Number of draws to generate.
- seed
Seed for the random number generator.
- ...
Additional arguments passed to the underlying draw function. This function is stored in model$pseudo_posterior$fun.
- object
A CompInt_model object.
Examples
if (FALSE) {
# Example usage
glm <- ### some GLM needs to be fit!!! #TOFIX!!!
model <- glm_to_compint(glm)
draws <- draws_from_paramdist(model, ndraws = 1000, seed = 123)
}
# TOFIX: is importFrom needed here? I mean it depends on the pseudo_posterior fun