Learn R Programming

spTimer (version 0.02)

spT.priors: Priors for the spatio-temporal models.

Description

This command is useful to assign the hyper-parameters of the prior distributions.

Usage

spT.priors(model,var.prior=Gam(a=2,b=1),
  beta.prior=Nor(0,10^4), rho.prior=Nor(0,10^4),
  phi.prior=Gam(a=2,b=1))

Arguments

model
The spatio-temporal models, current input: "GP", "AR", and "GPP".
var.prior
The hyper-parameter for the Gamma prior distribution (with mean = a/b) of the variance model parameters (e.g., $\sigma$2_$\epsilon$, $\sigma$2_$\eta$).
beta.prior
The hyper-parameter for the Normal prior distribution of the $\beta$ model parameters.
rho.prior
The hyper-parameter for the Normal prior distribution of the $\rho$ model parameter.
phi.prior
The hyper-parameter for the Gamma prior distribution (with mean = a/b) of the spatial decay ($\phi$) parameter.

See Also

spT.Gibbs, spT.prediction, spT.forecast, spT.initials.

Examples

Run this code
## 

priors<-spT.priors(model="GPP",var.prior=Gam(2,1),
      beta.prior=Nor(0,10^4))
priors

##

Run the code above in your browser using DataLab