Recommend a design condition from simulation results
Source:R/api-simulation.R
recommend_mfrm_design.RdRecommend a design condition from simulation results
Arguments
- x
Output from
evaluate_mfrm_design()orsummary.mfrm_design_evaluation().- facets
Facets that must satisfy the planning thresholds.
- min_separation
Minimum acceptable mean separation.
- min_reliability
Minimum acceptable mean reliability.
- max_severity_rmse
Maximum acceptable severity recovery RMSE.
- max_misfit_rate
Maximum acceptable mean misfit rate.
- min_convergence_rate
Minimum acceptable convergence rate.
- prefer
Ranking priority among design variables. Earlier entries are optimized first when multiple designs pass. Custom public aliases from
sim_specare also accepted, as are the role keywordsperson,rater,criterion, andassignment.
Value
A list of class mfrm_design_recommendation with:
facet_table: facet-level threshold checks, including design-variable alias columns when applicabledesign_table: design-level aggregated checks, including design-variable alias columns when applicablerecommended: the first passing design after rankingthresholds: thresholds used in the recommendationdesign_variable_aliases: accepted public aliases for design variablesdesign_descriptor: role-based design-variable metadataplanning_scope: explicit record of the current planning contractplanning_constraints: explicit record of mutable/locked design variablesplanning_schema: combined planner-schema contractcaveats: structured warning rows for situations where the recommendation rests on weak evidence (e.g., no design met every threshold; the recommended design is at the boundary of the evaluated grid; only one rep was simulated). Emptytibble()when no caveats apply.
Details
This helper converts a design-study summary into a simple planning table.
A design is marked as recommended when all requested facets satisfy all
selected thresholds simultaneously.
If multiple designs pass, the helper returns the smallest one according to
prefer (by default: fewer persons first, then fewer ratings per person,
then fewer raters, then fewer criteria).
Typical workflow
Review
summary.mfrm_design_evaluation()andplot.mfrm_design_evaluation().Use
recommend_mfrm_design(...)to identify the smallest acceptable design.
Examples
if (FALSE) { # \dontrun{
sim_eval <- suppressWarnings(evaluate_mfrm_design(
n_person = c(8, 12),
n_rater = 2,
n_criterion = 2,
raters_per_person = 1,
reps = 1,
maxit = 30,
seed = 123
))
rec <- recommend_mfrm_design(sim_eval)
rec$recommended
} # }