gsbBayesUpdate {gsbDesign} | R Documentation |
Bayesian Update
Description
Bayesian update from prior and data to posterior for normally distributed data with known sigma.
Usage
gsbBayesUpdate(alpha, beta, meanData, precisionData, with.alpha = TRUE)
Arguments
alpha |
|
beta |
|
meanData |
|
precisionData |
|
with.alpha |
|
Value
alpha |
posterior means. Only if |
beta |
posterior precisions. |
weight |
weights of the priors relative to the whole information after updating. |
Note
This function is used in the function gsb()
.
Author(s)
Florian Gerber <florian.gerber@math.uzh.ch>, Thomas Gsponer
See Also
Examples
## One dimensional case, with.alpha = FALSE
gsbBayesUpdate(beta=10,precisionData=20, with.alpha=FALSE)
## Two dimensional case, with.alpha = TRUE
gsbBayesUpdate(alpha=c(5,6),beta=c(10,11),meanData=c(10,11),
precisionData=c(20,21),with.alpha=TRUE)
[Package gsbDesign version 1.0-3 Index]