PriorSpec.list {lgcp} | R Documentation |
PriorSpec.list function
Description
Method for declaring a Bayesian prior density in lgcp. Checks to confirm that the object obj has the requisite components for functioning as a prior.
Usage
## S3 method for class 'list'
PriorSpec(obj, ...)
Arguments
obj |
a list object defining a prior , see ?GaussianPrior and ?LogGaussianPrior |
... |
additional arguments |
Value
an object suitable for use in a call to the MCMC routines
See Also
GaussianPrior, LogGaussianPrior
Examples
## Not run: PriorSpec(LogGaussianPrior(mean=log(c(1,500)),variance=diag(0.15,2)))
## Not run: PriorSpec(GaussianPrior(mean=rep(0,9),variance=diag(10^6,9)))
[Package lgcp version 2.0 Index]