View source: R/api-simulation.R
| plot.mfrm_signal_detection | R Documentation |
Plot DIF/bias screening simulation results
## S3 method for class 'mfrm_signal_detection'
plot(
x,
signal = c("dif", "bias"),
metric = c("power", "false_positive", "estimate", "screen_rate",
"screen_false_positive"),
x_var = c("n_person", "n_rater", "n_criterion", "raters_per_person"),
group_var = NULL,
draw = TRUE,
...
)
x |
Output from |
signal |
Whether to plot DIF or bias screening results. |
metric |
Metric to plot. For |
x_var |
Design variable used on the x-axis. When |
group_var |
Optional design variable used for separate lines. The same
alias rules as |
draw |
If |
... |
Reserved for generic compatibility. |
If draw = TRUE, invisibly returns plotting data. If draw = FALSE,
returns that plotting-data list directly. The returned list includes
resolved canonical variables (x_var, group_var) together with public
labels (x_label, group_label), design_variable_aliases,
design_descriptor, planning_scope, planning_constraints,
planning_schema,
display_metric, and interpretation_note so
callers can label bias-side plots as screening summaries rather than
formal power/error-rate displays.
evaluate_mfrm_signal_detection(), summary.mfrm_signal_detection
sig_eval <- suppressWarnings(evaluate_mfrm_signal_detection(
n_person = 8,
n_rater = 2,
n_criterion = 2,
raters_per_person = 1,
reps = 1,
maxit = 30,
bias_max_iter = 1,
seed = 123
))
plot(sig_eval, signal = "dif", metric = "power", x_var = "n_person", draw = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.