lgcpPrior {lgcp}R Documentation

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, chooseCellwidth, getpolyol, guessinterp, getZmat, addTemporalCovariates, lgcpPrior, lgcpInits, CovFunction lgcpPredictSpatialPlusPars, lgcpPredictAggregateSpatialPlusPars, lgcpPredictSpatioTemporalPlusPars, lgcpPredictMultitypeSpatialPlusPars

Examples

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))))

[Package lgcp version 2.0 Index]