| simFigures | R Documentation |
Produces performance figures from the output of insurancePlasmodeSim.
Creates one PDF figure per (model type) \times (variance estimator) combination
(4 figures total by default). Each figure is a 2 \times 4 panel grid:
Top row: Anova-table RESI metrics (Bias, MSE, CI Coverage, CI Width)
Bottom row: Coefficients-table RESI metrics (same metrics; intercept excluded)
Colors: one colored line per model term (high-contrast matte palette)
x-axis: sample size on a log scale
Dashed reference lines are drawn at zero for Bias and at 1 - \alpha for CI Coverage.
simFigures(output.dir = "resiBootSim", alpha = 0.05, ci.label = NULL)
output.dir |
Character, directory containing simulation output from
|
alpha |
Numeric, nominal CI level used for the coverage reference line. Default 0.05. |
ci.label |
Character, label for the CI method used in figure titles and file
names. Default |
Invisibly returns the summary metrics data.frame. Saves PDF figures
to file.path(output.dir, "figures"), named
sim_<model>_<vcov>_<ci.label>.pdf.
insurancePlasmodeSim
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.