R/bayes_functions.R
iparPosteriorSample.Rd
iparPosteriorSample
is a function for generating item parameter samples.
Used for the FB (full-Bayesian) estimation method.
iparPosteriorSample(pool, n_sample = 500)
an item_pool
object.
the number of samples to draw.
iparPosteriorSample
returns a length-ni list of item parameter matrices, with each matrix having n_sample
rows.
ipar <- iparPosteriorSample(itempool_bayes, 5)
ipar <- iparPosteriorSample(itempool_science, 5) # no variation