summary.hIRT: Summarizing Hierarchical Item Response Theory Models

Description Usage Arguments Value Examples

View source: R/summary.R

Description

Summarizing the fit of either hltm or hgrm.

Usage

1
2
3
4
5
## S3 method for class 'hIRT'
summary(object, by_item = FALSE, digits = 3, ...)

## S3 method for class 'summary_hIRT'
print(x, digits = 3, ...)

Arguments

object

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.

...

further arguments passed to print.

x

An object of class hIRT

Value

An object of class summary_hIRT.

call

The matched call.

model

Model fit statistics: Log likelihood, AIC, and BIC.

item_coefs

Item parameter estimates, standard errors, z values, and p values.

mean_coefs

Parameter estimates for the mean equation.

var_coefs

Parameter estimates for the variance equation.

Examples

1
2
3
4
5
y <- nes_econ2008[, -(1:3)]
x <- model.matrix( ~ party * educ, nes_econ2008)
z <- model.matrix( ~ party, nes_econ2008)
nes_m1 <- hgrm(y, x, z)
summary(nes_m1, by_item = TRUE)

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