bri.adapt.prior | R Documentation |
Construct a random walk prior for adaptive smoothing
bri.adapt.prior(x, degree = 3, nknot = 5, theta.prec = 0.01,
type = c("indpt", "spde"))
x |
the predictor vector |
degree |
the degree of B-spline basis used for the smoothing function (default is 3) |
nknot |
the number of knots for the B-spline basis (default is 5) |
theta.prec |
the fixed precision of the Gaussian prior on the smoothing function (default value is 0.01) |
type |
the type of the Gaussian prior on the smoothing function: 'indpt' independent Gaussian priors; 'spde' SPDE prior |
an object for the 'model' option used in inla()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.