Learn R Programming

GDINA (version 1.4.2)

mesaplot: Mesa plot for Q-matrix validation

Description

Mesa plot for Q-matrix validation

Usage

mesaplot(Qval.obj, item, type = "best", no.qvector = 10,
  data.label = TRUE, eps = 0.95, original.q.label = FALSE,
  auto.ylim = TRUE, ...)

Arguments

Qval.obj
model object of class Qvalidation
item
a vector specifying which item(s) the plots are drawn for
type
types of the plot. It can be "best" or "all". If "best", for all q-vectors requiring the same number of attributes, only the one with the largest PVAF is plotted, which means \(K_j\) q-vectors are plotted; If "all", all q-vectors will be plotted.
no.qvector
the number of q vectors that need to be plotted when type="all". The default is 10, which means the 10 q vectors with the largest PVAFs are plotted.
data.label
logical; To show data label or not?
eps
the cutoff for PVAF. If not NULL, it must be a value between 0 and 1. A horizontal line will be drawn accordingly.
original.q.label
logical; print the label showing the original q-vector or not?
auto.ylim
logical; create y range automatically or not?
...
additional arguments passed to plot function

See Also

Qval, autoGDINA

Examples

Run this code
## Not run: ------------------------------------
# dat <- sim10GDINA$simdat
# Q <- sim10GDINA$simQ
# Q[1,] <- c(0,1,0)
# mod1 <- GDINA(dat = dat, Q = Q, model = "GDINA")
# out <- Qval(mod1,eps = 0.9)
# item <- c(1,2,10)
# mesaplot(out,item=item,data.label=FALSE,type="all")
# mesaplot(out,item=10,type="best",eps=0.95)
# mesaplot(out,item=10,type="all",no.qvector=5)
## ---------------------------------------------


Run the code above in your browser using DataLab