plot.Hull {Qval}R Documentation

Hull Plot

Description

This function can provide the Hull plot. The points suggested by the Hull method are marked in red.

Usage

## S3 method for class 'Hull'
plot(x, i, ...)

Arguments

x

A list containing all the information needed to plot the Hull plot. It can be gotten from the validation object when method = "Hull".

i

A numeric, which represents the item you want to plot Hull curve.

...

Additional arguments to be passed to the plotting function.

Value

None. This function is used for side effects (plotting).

Examples

set.seed(123)
library(Qval)

## generate Q-matrix and data
K <- 5
I <- 20
IQ <- list(
  P0 = runif(I, 0.1, 0.3),
  P1 = runif(I, 0.7, 0.9)
)


Q <- sim.Q(K, I)
data <- sim.data(Q = Q, N = 500, IQ = IQ, model = "GDINA", distribute = "horder")
MQ <- sim.MQ(Q, 0.1)

CDM.obj <- CDM(data$dat, MQ)

############### ESA ###############
Hull.obj <- validation(data$dat, MQ, CDM.obj, method = "Hull", search.method = "ESA") 
Hull.fit <- Hull.obj$Hull.fit

## plot Hull curve for item 5
plot(Hull.fit, 5)

############### PAA ###############
Hull.obj <- validation(data$dat, MQ, CDM.obj, method = "Hull", search.method = "PAA") 
Hull.fit <- Hull.obj$Hull.fit

## plot Hull curve for item 5
plot(Hull.fit, 5)





[Package Qval version 1.1.0 Index]