Learn R Programming

TestDesign (version 1.2.4)

plotExposure: (deprecated) Plot item exposure rates

Description

(deprecated) Use plot with type = 'exposure' instead.

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, ... )

# S4 method for output_Shadow_all 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

the target exposure rate.

theta_segment

the type of theta to use to create segments. Accepts "estimated" or "true". (default = "estimated")

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 <- simResp(itempool_science, true_theta)
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