plot.mcstudy: Plot the output of run_mcstudy

View source: R/header_replication.R

plot.mcstudyR Documentation

Plot the output of run_mcstudy

Description

Plot the output of run_mcstudy

Usage

## S3 method for class 'mcstudy'
plot(x, ...)

Arguments

x

object of class mcstudy, generated by run_mcstudy

...

additional parameters, see details below.

Details

The plot is in the same format as Figure 1 or 2 in KLTG (2021), depending on the parameters set when running run_mcstudy. These parameters also determine the plot content (nr of MCMC chains, maximal sample size, etc). In terms of additional inputs (...), the following are currently implemented:

  • scoring_rule, the scoring rule for which results are to be plotted, either "crps" or "logs". Defaults to "crps".

  • add_main_title, logical, whether to add main title to plot. Defaults to TRUE.

Value

none, used for the effect of drawing a plot.

Author(s)

Fabian Krueger

References

Krueger, F., Lerch, S., Thorarinsdottir, T.L. and T. Gneiting (2021): ‘Predictive inference based on Markov chain Monte Carlo output’, International Statistical Review 89, 274-301. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/insr.12405")}

See Also

run_mcstudy produces the simulation results summarized by plot.mcstudy


scoringRules documentation built on May 31, 2023, 6:06 p.m.