print.ctt: Print a Combined CTT Analysis

View source: R/print.R

print.cttR Documentation

Print a Combined CTT Analysis

Description

Prints a condensed, headline-style summary of an object of class "ctt" returned by ctt(), following the same brief/full print-summary split used by est_irt() (compare print.est_irt() vs. summary.est_irt()/print.summary.est_irt()).

Usage

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

Arguments

x

An object of class "ctt", as returned by ctt().

digits

Number of decimal places used when rounding numeric values for display. Default is 3. Note that the item- and test-level statistics bundled into x are already rounded to 3 decimal places before ctt() returns them, so a digits value greater than 3 here cannot recover precision that was already discarded upstream.

...

Additional arguments passed to or from other methods (currently not used).

Value

x, invisibly.

Author(s)

Hwanggyu Lim hglim83@gmail.com

See Also

ctt(), summary.ctt()

Examples

# simulate the responses of 300 examinees to 15 dichotomous 3PLM items
set.seed(1)
x <- shape_df(
  par.drm = list(a = rep(1.5, 15), b = seq(-1.5, 1.5, length.out = 15),
                 g = rep(0.2, 15)),
  cats = 2, model = "3PLM"
)
dat <- simdat(x = x, theta = rnorm(300), D = 1)

# run the CTT analysis
out <- ctt(data = dat)

# print the condensed report
print(out)


irtQ documentation built on Oct. 5, 2026, 5:08 p.m.