Learn R Programming

lgcp (version 1.8)

PriorSpec.list: 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 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

Run this code
# 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)))
# }

Run the code above in your browser using DataLab