coef_item {hIRT}R Documentation

Parameter Estimates from Hierarchical IRT Models.

Description

Parameter estimates from either hltm or hgrm models. code_item reports estimates of item parameters. coef_mean reports results for the mean equation. coef_var reports results for the variance equation.

Usage

coef_item(x, by_item = TRUE, digits = 3)

coef_mean(x, digits = 3)

coef_var(x, digits = 3)

Arguments

x

An object of class hIRT

by_item

Logical. Should item parameters be stored item by item (if TRUE) or put together in a data frame (if FALSE)?

digits

The number of significant digits to use when printing

Value

Parameter estimates, standard errors, z values, and p values organized as a data frame (if by_item = TRUE) or a list (if by_item = FALSE).

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)
coef_item(nes_m1)
coef_mean(nes_m1)
coef_var(nes_m1)

[Package hIRT version 0.3.0 Index]