coef_item: Parameter Estimates from Hierarchical IRT Models.

Description Usage Arguments Value Examples

View source: R/coef.R

Description

Parameter estimates from either hltm or hgrm or hgrmDIF 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

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

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

xiangzhou09/hIRT documentation built on Dec. 25, 2021, 5:27 a.m.