Learn R Programming

GNGTools (version 1.0.0)

get.ss.normal.post: Get single sample normal (with known variance) posterior distribution parameters

Description

Returns the parameters of the posterior distribution in the case of normal prior with known variance and normal data

Usage

get.ss.normal.post(
  prior.mean = 0,
  prior.var = 1e+06,
  sample.n = 10,
  sample.xbar = seq(-1, 1, 0.01),
  sample.var = 1
)

Value

returns a data.frame hold posterior parameters, sample x.bar, sample variance and posterior mean and variances

Arguments

prior.mean

prior mean

prior.var

prior variance

sample.n

sample size

sample.xbar

sample mean

sample.var

sample variance

Author

Greg Cicconetti

Examples

Run this code
 my.ss.normal.post <- get.ss.normal.post()
 head(my.ss.normal.post)

Run the code above in your browser using DataLab