ICCplot {GRShiny} | R Documentation |
Plot ICC or OCC
Description
Plot ICC or OCC
Usage
ICCplot(
fit,
selected_item,
theta = seq(-4, 4, 0.1),
plot.occ = FALSE,
addlabel = FALSE,
base_size = 16,
line_size = 1,
cal_option = "D"
)
Arguments
fit |
an object from |
selected_item |
a numeric indicating for what items the function makes plots |
theta |
a numeric indicating latent traits |
plot.occ |
a logical. If TRUE, OCC is made instead of ICC |
addlabel |
a logical indicating whether to add the b parameter as labels |
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 color specified in
|
Details
This makes either item characteristic curve plots or operating characteristic curve plots
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")
ICCplot(fit, 1, seq(-3, 3, .1), plot.occ = FALSE, base_size = 16)
[Package GRShiny version 1.0.0 Index]