infoPlot {GRShiny}R Documentation

Calculate item information

Description

Calculate item information

Usage

infoPlot(
  fit,
  selected_item,
  type = "icc",
  theta = seq(-4, 4, 0.1),
  base_size = 16,
  line_size = 1,
  cal_option = "D",
  facet = FALSE
)

Arguments

fit

an object from runGRM

selected_item

a numeric indicating for what items the function makes plots

type

a character indicating the type of plots

  • icc Test information

  • tcc Total Test information

theta

a numeric indicating latent traits

base_size

a numeric indicating the base font size

line_size

a numeric indicating the size of line

cal_option

a character indicating the plot colour specified in scale_color_viridis_d (default = D)

facet

a logical. If TRUE, the plot is faceted by items. (default = FALSE).

Details

This makes either item information plots or total information plot

Value

a ggplot object.

Examples


grm_dt <- genData(eta = genTheta(nsample = 500, nfac = 1),
                 ipar = genIRTpar(nitem = 10, ncat = 3, nfac = 1))

fit <- runGRM(dat = grm_dt,
            lav.syntax = genLavSyn(dat = grm_dt, nfac = 1),
            estimator = "WL")
infoPlot(fit, selected_item=1:4, type = "icc", base_size = 16)


[Package GRShiny version 1.0.0 Index]