Learn R Programming

TestDesign (version 1.0.2)

plotExposure: Draw an item exposure plot

Description

Draw a plot of item exposure rates

Usage

plotExposure(
  object,
  max_rate = 0.25,
  theta_segment = "Estimated",
  color = "blue",
  color_final = "blue",
  file_pdf = NULL,
  ...
)

# S4 method for list plotExposure( object, max_rate = 0.25, theta_segment = "estimated", color = "blue", color_final = "blue", file_pdf = NULL, ... )

Arguments

object

An output object generated by Shadow.

max_rate

A target exposure rate.

theta_segment

True or Estimated theta used to create segments ("Estimated" or "True").

color

Color of item-wise exposure rates.

color_final

Color of item-wise exposure rates, only counting the items while in the final theta segment as exposed.

file_pdf

If supplied a filename, save as a PDF file.

...

Additional options to be passed on to pdf().

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 <- plotExposure(solution)
# }

Run the code above in your browser using DataLab