View source: R/helperfunctions_plots.R
coverage_area_helper | R Documentation |
This function takes one single effect function from the simulated effects and gives a data.frame which can be used to plot the coverage area of all simulation runs.
coverage_area_helper(sim_curves, effect_index, ylim = c(-0.5, 0.5),
by = 1/99, m_fac = 1.96)
sim_curves |
The large list of simulation results. Use object$mul. |
effect_index |
The index position of the effect to be evaluated in the gen_curves and sim_curves effect lists. If the intercept is to be evaluated, this can be specified as 1 or 2 (both scalar and functional intercept are sumed up). |
ylim |
Two element numeric vector specifying the area for which the coverage is to be plotted. Defaults to c(-0.5, 0.5). |
by |
Step size for the grid of y values to check for coverage. Defaults to 1/99. |
m_fac |
Multiplication factor used to create the upper and lower credibility bounds. Defaults to 1.96 (ca. 95%). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.