tidy.irtree_fit: Tidy an irtree_fit object

Description Usage Arguments Value See Also Examples

View source: R/tidiers.R

Description

Tidy summarizes information about the parameter estimates of an ItemResponseTrees model.

Usage

1
2
## S3 method for class 'irtree_fit'
tidy(x = NULL, par_type = NULL, ...)

Arguments

x

object of class irtree_fit as returned from fit().

par_type

Only used if the fit engine was mirt. Item parameters (or thresholds) can be either of type easiness (the mirt default) or difficulty (as in Mplus and TAM).

...

Not currently used.

Value

A tibble with one row for each model parameter and the following columns:

term

The name of the model parameter.

estimate

The estimated value of the term.

std.error

The standard error of the term.

statistic

The value of the test statistic of the term (Mplus only).

p.value

The p-value associated with the statistic (Mplus only).

See Also

generics::tidy()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data("jackson")
df1 <- jackson[1:234, paste0("C", 1:5)]
irtree_create_template(df1)
m1 <- "
IRT:
t BY C1@1, C2@1, C3@1, C4@1, C5@1;
Class:
GRM"
fit1 <- fit(irtree_model(m1), data = df1)

tidy(fit1, par_type = "difficulty")

glance(fit1)

augment(fit1)

ItemResponseTrees documentation built on July 2, 2020, 2:25 a.m.