Description Usage Arguments Value Examples
View source: R/normal_gamma_conjugate_family.R
Title Univariate normal distribution with normal-gamma conjugate distribution
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))
|
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. |
The comparison of three data sets.
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.