Learn R Programming

lgcp (version 1.3-8)

lgcpPrior: lgcpPrior function

Description

A function to create the prior for beta and eta ready for a run of the MCMC algorithm.

Usage

lgcpPrior(etaprior = NULL, betaprior = NULL)

Arguments

etaprior
an object of class PriorSpec defining the prior for the parameters of the latent field, eta. See ?PriorSpec.list.
betaprior
etaprior an object of class PriorSpec defining the prior for the parameters of main effects, beta. See ?PriorSpec.list.

Value

  • an R structure representing the prior density ready for a run of the MCMC algorithm.

See Also

GaussianPrior, LogGaussianPrior, PriorSpec.list, minimum.contrast, minimum.contrast.spatiotemporal, chooseCellwidth, getpolyol, guessinterp, getZmat, addTemporalCovariates, lgcpPrior, lgcpInits, CovFunction lgcpPredictSpatialPlusPars, lgcpPredictAggregateSpatialPlusPars, lgcpPredictSpatioTemporalPlusPars, lgcpPredictMultitypeSpatialPlusPars

Examples

Run this code
lgcpPrior(etaprior=PriorSpec(LogGaussianPrior(mean=log(c(1,500)),
    variance=diag(0.15,2))),betaprior=PriorSpec(GaussianPrior(mean=rep(0,9),
    variance=diag(10^6,9))))

Run the code above in your browser using DataLab