Skip to contents

This function generates draws from the parameter distribution of a CompInt_model object.

Usage

draws_from_paramdist(model, ndraws = 1000, seed = NULL, ...)

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.

Value

A matrix of draws from the parameter distribution.

Details

#TOFIX!!!

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