latent_scores: Estimates of Latent Preferences/Abilities

Description Usage Arguments Value Examples

View source: R/latent_scores.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
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))

hIRT documentation built on April 14, 2020, 7:07 p.m.