graph_bayes: Graph Bayesian Updating

Description Usage Arguments Value Examples

View source: R/bayes.R

Description

Graphs posterior, prior (Distribution 1), and likelihood (Distribution 2). Requires ggplot2.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
graph_bayes(
  est_1,
  se_1,
  est_2,
  se_2,
  est_pooled = NULL,
  se_pooled = NULL,
  x_min = -0.075,
  x_max = 0.075
)

Arguments

est_1

Point estimate of Distribution 1

se_1

Standard error on point estimate of Distribution 2

est_2

Point estimate of Distribution 2

se_2

Standard error on point estimate of Distribution 2

est_pooled

Point estimate of posterior, defaults to NULL (calculate automatically)

se_pooled

Standard error of posterior, defaults to NULL (calculate automatically)

x_min

Minimum value on x axis.

x_max

Maximum value on x axis.

Value

ggplot2 object

Examples

1
graph_bayes(0, 0.01, 0.05, 0.01)

anniejw6/testingtools documentation built on Jan. 26, 2021, 6:41 a.m.