normal_gamma_conjugate_family: Title Univariate normal distribution with normal-gamma...

Description Usage Arguments Value Examples

View source: R/normal_gamma_conjugate_family.R

Description

Title Univariate normal distribution with normal-gamma conjugate distribution

Usage

1
2
3
normal_gamma_conjugate_family(sample_size, mu_0, sigma_0_sequare, kappa_0,
  nu_0, y.1, y.2 = NULL, y.3 = NULL, confidence_interval = c(0.025,
  0.975))

Arguments

sample_size

How many samples to produce.

mu_0

The mean of normal distribution of theta given sigma squared.

sigma_0_sequare

Sample variance.

kappa_0

The number of prior observations.

nu_0

The number of samples of prior observations.

y.1

Data set number 1.

y.2

Data set number 2.

y.3

Data set number 3.

confidence_interval

Confidence interval to be calculated.

Value

The comparison of three data sets.

Examples

1
2
3
normal_gamma_conjugate_family(sample_size = 10000, mu_0 = 5, sigma_0_sequare = 4, 
kappa_0 = 1, nu_0 = 2, y.1 = school1, 
y.2 = school2, y.3 = school3, confidence_interval = c(0.025, 0.975))

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