Skip to contents

Plot dpmirt_estimates object

Usage

# S3 method for class 'dpmirt_estimates'
plot(x, type = c("estimates", "shrinkage"), param = c("theta", "beta"), ...)

Arguments

x

A dpmirt_estimates object.

type

Character. Plot type: "estimates" (caterpillar of PM/CB/GR) or "shrinkage" (PM vs CB scatter).

param

Character. Which parameter: "theta" or "beta".

...

Additional graphical parameters.

Value

Invisibly returns the input dpmirt_estimates object.

Examples

if (FALSE) { # \dontrun{
sim <- dpmirt_simulate(200, 20, model = "rasch", seed = 42)
fit <- dpmirt(sim$response, model = "rasch", prior = "normal",
              niter = 5000, nburnin = 1000, seed = 123)
est <- dpmirt_estimates(fit)

# PM/CB/GR caterpillar plot
plot(est, type = "estimates")

# Shrinkage plot (PM vs CB)
plot(est, type = "shrinkage")
} # }