latent_scores {hIRT}R Documentation

Estimates of Latent Preferences/Abilities

Description

EAP estimates of latent preferences for either hltm or hgrm models.

Usage

latent_scores(x, digits = 3)

Arguments

x

An object of class hIRT

digits

The number of significant digits to use when printing

Value

A data frame of EAP estimates of latent preferences and their approximate standard errors.

Examples

y <- nes_econ2008[, -(1:3)]
x <- model.matrix( ~ party * educ, nes_econ2008)
z <- model.matrix( ~ party, nes_econ2008)
nes_m1 <- hgrm(y, x, z)
pref <- latent_scores(nes_m1)
require(ggplot2)
ggplot(data = nes_econ2008) +
geom_density(aes(x = pref$post_mean, col = party))

[Package hIRT version 0.3.0 Index]