plot.PriorGen: The findbeta plot function

View source: R/findbeta_plot.R

plot.PriorGenR Documentation

The findbeta plot function

Description

A function that plots any object of the class findbeta.

Usage

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

Arguments

x

An object of type findbeta produces of one of the other PriorGen functions.

...

More basic plot arguments

Examples

## Example 1
## Based on the available literature the mean value for the 
## sensitivity of a test is expected to be generally low and 
## its variance not that low but not that much neither.

res_abs_1 <- findbeta_abstract(
  themean.cat = "Low",
  thevariance.cat = "Average"
)
plot(res_abs_1,
  main = "Plot of the findbeta_abstract function",
  lwd = 3, ylim = c(0, 7)
)

## Example 2
## Hierarchical prior

res_mult_1 <- findbetamupsi(
  themean = 0.10, percentile = 0.79,
  lower.v = TRUE, percentile.value = 0.26, psi.percentile = 0.95,
  percentile.median = 0.28, percentile95value = 0.3
)

plot(res_mult_1,
  main = "Plot of the findbetamupsi function",
  lwd = 3, ylim = c(0, 7)
)


PriorGen documentation built on April 3, 2023, 5:15 p.m.