plot.ddfMLR {difNLR} | R Documentation |
"ddfMLR"
class.Plot method for an object of "ddfMLR"
class
using ggplot2.
The characteristic curves for an item specified in item
argument are plotted. Plotted curves represent the best model.
## S3 method for class 'ddfMLR' plot(x, item = "all", group.names, ...)
x |
an object of |
item |
numeric or character: either character |
group.names |
character: names of reference and focal group. |
... |
other generic parameters for |
Returns list of objects of class "ggplot"
.
Adela Hladka (nee Drabinova)
Institute of Computer Science of the Czech Academy of Sciences
Faculty of Mathematics and Physics, Charles University
hladka@cs.cas.cz
Patricia Martinkova
Institute of Computer Science of the Czech Academy of Sciences
martinkova@cs.cas.cz
ddfMLR
for DDF detection.
ggplot
for general function to plot a "ggplot"
object.
## Not run: # loading data data(GMATtest, GMATkey) Data <- GMATtest[, 1:20] # items group <- GMATtest[, "group"] # group membership variable key <- GMATkey # correct answers # testing both DDF effects (x <- ddfMLR(Data, group, focal.name = 1, key)) # graphical devices plot(x, item = "Item1", group.names = c("Group 1", "Group 2")) plot(x, item = x$DDFitems) plot(x, item = c(3, 1, 5)) ## End(Not run)