Learn R Programming

TestDesign (version 1.0.1)

plotExposureRateFinal: Draw exposure rate plots by final theta segment

Description

Draw exposure rate plots by final theta segment.

Usage

plotExposureRateFinal(
  object,
  config = NULL,
  max_rate = 0.25,
  theta = "Estimated",
  segment_cut = NULL,
  color = "red",
  file_pdf = NULL,
  width = 7,
  height = 6,
  mfrow = c(2, 4),
  burn = 0,
  retain = NULL
)

Arguments

object

An output object generated by Shadow.

config

A '>config_Shadow object.

max_rate

A target item exposure rate.

theta

By which theta to base the segments, either "Estimated" or "True".

segment_cut

A vector of cut values defining theta segments.

color

A vector of colors.

file_pdf

If supplied a filename, save as a PDF file.

width

Width of the graphics object.

height

Height of the graphics object.

mfrow

Number of multiple figures defined as c(nrow, ncol).

burn

An integer identifying the first x simulees to discard as burn-in.

retain

An optional vector of indices identifying the simulees to retain.

Examples

Run this code
# NOT RUN {
true_theta <- runif(10, min = -3.5, max = 3.5)
resp_science <- makeTest(itempool_science, info_type = "FISHER", true_theta = true_theta)@data
constraints_science2 <- updateConstraints(constraints_science, off = c(14:20, 32:36))
config_science <- createShadowTestConfig(
  MIP = list(solver = "LPSOLVE"),
  exposure_control = list(method = "ELIGIBILITY")
)
solution <- Shadow(config_science, constraints_science2, true_theta, data = resp_science)
p <- plotExposureRateFinal(solution, config_science, 0.25)
# }

Run the code above in your browser using DataLab