Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.GDINA

Create plots for GDINA estimates


Description

Create various plots for GDINA estimates

Usage

## S3 method for class 'GDINA'
plot(
  x,
  what = "IRF",
  item = "all",
  withSE = FALSE,
  SE.type = 2,
  person = 1,
  att.names = NULL,
  ...
)

Arguments

x

model object of class GDINA

what

type of plot. Can be "IRF" for item/category response function plot, or "mp" for mastery probabilities for individuals.

item

A scalar or vector specifying the item(s) for IRF plots.

withSE

logical; Add error bar (estimate - SE, estimate + SE) to the IRF plots?

SE.type

How is SE estimated. By default, it's based on OPG using incomplete information.

person

A scalar or vector specifying the number of individuals for mastery plots.

att.names

Optional; a vector for attribute names.

...

additional arguments

See Also

Examples

## Not run: 
dat <- sim10GDINA$simdat
Q <- sim10GDINA$simQ
mod1 <- GDINA(dat = dat, Q = Q, model = "GDINA")
#plot item response functions for item 10
plot(mod1, item = 10)
plot(mod1, what = "IRF", item = 10,withSE = TRUE)

# plot mastery probabilities for individuals 4 and 10
plot(mod1, what = "mp", person = c(4,10))
plot(mod1, what = "mp", person = c(4,10,15),
att.names = c("addition","subtraction","multiplication"))

## End(Not run)

GDINA

The Generalized DINA Model Framework

v2.8.0
GPL-3
Authors
Wenchao Ma [aut, cre, cph], Jimmy de la Torre [aut, cph], Miguel Sorrel [ctb], Zhehan Jiang [ctb]
Initial release
2020-05-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.