Description Usage Arguments Details
Auxiliary functions.
1 2 3 |
var.name |
The name of the variable whose prior distribution is being specified. |
lower |
The lower prior bound for |
upper |
The upper prior bound for |
mean |
The prior mean for |
sd |
The prior standard deviation for |
These functions are intended as a user-friendly way of specifying the type of priors assumed for the calibration parameters in the function bayesfit
.
For example, in a problem with calibration parameters named "delta1" and "shift", a uniform(0,1) prior for "delta1" and for "shift" a normal density with mean 2 and standard deviation 1 truncated to the interval (0,3), the prior should be specified as
prior=c(uniform(var.name="delta1", lower=0, upper=1),
normal(var.name="shift", mean=2, sd=1, lower=0, upper=3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.