Skip to contents

The function extracts the optimization trace from an sspLNIRT.object coming from optim_sample() or get_sspLNIRT(), fits a log-log power curve (log(result) ~ log(N)), and displays the relationship on both the log-log and original scales side by side, annotated with regression coefficients and R-squared.

Usage

plot_power_curve(object, out.par, thresh = NULL)

Arguments

object

Object. sspLNIRT.object from optim_sample() or get_sspLNIRT().

out.par

Character. Wheather to plot the RMSE trace of `alpha`, `beta`, `phi`, or `lambda`.

thresh

Numeric (optional). Decision threshold used in optimization. If NULL, extracted from the object.

Value

A combined ggplot object (via patchwork).

Examples

 if (FALSE) { # \dontrun{
   plot_power_curve(object = test.optim.sample)
} # }