scale: numeric: The tau parameter for the CAR model (see references).
rho: numeric: The rho parameter for the CAR model (see references).
sum.zero: Bool: If true, all latent states will add to 0.
var.index: integer: The index of the variables from which to set the prior.
Returns
A dlm_block object with the desired prior.
Details
The filtering algorithm used in this package requires a proper prior for the latent space. As such, this implementation of the CAR prior imposes a zero-sum constraint in the regional effects. The discount factor must be the same for all variables whose prior is being modified.
For a revision of the CAR prior, see \insertCite AlexCar;textualkDGLM.
For the details about the implementation see \insertCite ArtigoPacote;textualkDGLM.