sensitivity_analysis: Title Analyze the effect of prior data on the model

Description Usage Arguments Value Examples

View source: R/sensitivity_analysis.R

Description

Title Analyze the effect of prior data on the model

Usage

1
2
3
sensitivity_analysis(sample_size, y_bar.1, standard_deviation.1, y_bar.2,
  standard_deviation.2, mu_0, sigma_0_square, n, kappa_0, nu_0,
  theta.1_smaller_than_theta.2 = TRUE, plot = TRUE)

Arguments

sample_size

How many samples to produce.

y_bar.1

Mean value of the first group of data.

standard_deviation.1

Standard deviation of the first group of data.

y_bar.2

Mean value of the second group of data.

standard_deviation.2

Standard deviation of the second group of data.

mu_0

Parameter.

sigma_0_square

Parameter.

n

Parameter.

kappa_0

Parameter.

nu_0

Parameter.

theta.1_smaller_than_theta.2

How to make the comparison. If FALSE, compute theta1 > theta2.

plot

Whether to plot the figure showing the tendency of probability change.

Value

The sensitivity analysis.

Examples

1
2
3
sensitivity_analysis(sample_size = 10000, y_bar.1 = 75.2, standard_deviation.1 = 7.3, 
y_bar.2 = 77.5, standard_deviation.2 = 8.1, mu_0 = 75, sigma_0_square = 100, 
n = 16, kappa_0 = c(1,2,4,8,16,32), nu_0 = c(1,2,4,8,16,32))

nathanxli/BayesPD documentation built on June 18, 2020, 4:38 a.m.