Skip to contents

Item Response Curve for RTMB_Fit_Base

Usage

# S3 method for class 'RTMB_Fit_Base'
item_curve(x, theta_seq = seq(-4, 4, length.out = 100), items = NULL, ...)

Arguments

x

An object of class RTMB_Fit_Base.

theta_seq

Sequence of trait values (ability) to evaluate.

items

Index or item names to restrict the calculation to specific items (optional).

...

Additional arguments.

Examples

# \donttest{
  fit <- rtmb_irt(data = BigFive[, 1:5], model = "2PL", type = "ordered")
#> Pre-checking model code...
#> Checking RTMB setup...
  map_fit <- fit$optimize()
#> Starting RTMB optimization...
#> 
  ic <- item_curve(map_fit)
  plot(ic)

# }