rma_efficiency_plot: Regression Efficiency Plot

Description Usage Arguments Details Value Author(s)

View source: R/rmar-plot.R

Description

In regression, efficiency can be evaluated through the analysis of the width of the predictive interval. The function evaluates and plot the width of the predictive interval and its coverage, the probability of an estimated predictive interval contain the known value.

Usage

1
2
3
4
5
6
7
8
rma_efficiency_plot(
  known,
  predicted,
  interval = NULL,
  breaks = 10,
  base_size = 12,
  digits = 3
)

Arguments

known

a numeric vector

predicted

a numeric matrix. See Details.

interval

minimum and maximum value of prediction domain. Should be supplied as vector of with two elements. If not supplied is assess from the known argument.

breaks

breaks on plot axis. Default is 10.

base_size

ggplot parameter to control text size in plots. Default is 12

digits

number of digits controlling floats precision. Default is 3

Details

predicted matrix must be organized as follows: 3 columns where the first column stores the point estimate of the model and the second and third columns store the lower and upper bounds of the predictive interval if the algorithm is able to produce one.

Value

a ggplot2 graphical object

Author(s)

David Senhora Navega


dsnavega/rmar documentation built on Dec. 20, 2021, 2:12 a.m.