Computes marginal posterior distributions for fitted models in the CDM package.

IRT.marginal_posterior(object, dim, remove_zeroprobs=TRUE, ...)

# S3 method for din
IRT.marginal_posterior(object, dim, remove_zeroprobs=TRUE, ...)
# S3 method for gdina
IRT.marginal_posterior(object, dim, remove_zeroprobs=TRUE, ...)
# S3 method for mcdina
IRT.marginal_posterior(object, dim, remove_zeroprobs=TRUE, ...)

Arguments

object

Object of class din, gdina, mcdina

dim

Numeric or character vector indicating dimensions of posterior distribution which should be marginalized

remove_zeroprobs

Logical indicating whether classes with zero probabilities should be removed

...

Further arguments to be passed

Value

List with entries

marg_post

Marginal posterior distribution

map

MAP estimate (individual classification)

theta

Skill classes

See also

Examples