lines.PriorGen {PriorGen}R Documentation

The findbeta lines function

Description

A function that plots any object on top of a class findbeta plot.

Usage

## S3 method for class 'PriorGen'
lines(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), type = "l"
)

res_abs_2 <- findbeta_abstract(
  themean.cat = "High",
  thevariance.cat = "Average"
)

lines(res_abs_2, lwd = 3, col = "red")

## 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)
)

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

lines(res_mult_2, lwd = 3, col = "red")

[Package PriorGen version 2.0 Index]