two_prior_sensitivity: Title Analysis the sensitivity of changing the parameters of...

Description Usage Arguments Value Examples

View source: R/two_prior_sensitivity.R

Description

Title Analysis the sensitivity of changing the parameters of Gamma distribution, based on the dependency of two Poisson distributions parameters.

Usage

1
2
two_prior_sensitivity(sample_size, gamma_theta_a, gamma_theta_b, y.1, y.2,
  gamma_gamma_a, gamma_gamma_b)

Arguments

sample_size

How many samples to produce.

gamma_theta_a

The first parameter of Gamma distribution of θ.

gamma_theta_b

The second parameter of Gamma distribution of θ.

y.1

The first group of data.

y.2

The second group of data.

gamma_gamma_a

The first parameter of Gamma distribution of γ.

gamma_gamma_b

The second parameter of Gamma distribution of γ.

Value

The expectation of the difference between parameters of Poisson distributions given the data.

Examples

1
2
3
two_prior_sensitivity(sample_size = 5000, gamma_theta_a = 2, gamma_theta_b = 1,
y.1 = menchild30bach, y.2 = menchild30nobach,
gamma_gamma_a = 2^(seq(3, 7)), gamma_gamma_b = 2^(seq(3, 7)))

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