coverage_area_helper: Coverage Area Plot Helper Function

View source: R/helperfunctions_plots.R

coverage_area_helperR Documentation

Coverage Area Plot Helper Function

Description

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.

Usage

coverage_area_helper(sim_curves, effect_index, ylim = c(-0.5, 0.5),
  by = 1/99, m_fac = 1.96)

Arguments

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%).


alexvolkmann/multifammPaper documentation built on Sept. 9, 2024, 8:47 p.m.