Plot the power curve from sample size optimization
Source:R/fct_plot_power_curve.R
plot_power_curve.RdThe 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.
Arguments
- object
Object. sspLNIRT.object from
optim_sample()orget_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.