Defines the prior of a structural block to be such that the latent states sum zero with probability one.
Details
The covariance matrix of the evolution and the drift parameter are also altered to guarantee that the zero sum condition will always hold. The discount factor must be the same for all variables whose prior is being modified. For the details about the implementation see ArtigoPacote;textualkDGLM.
See also
Other auxiliary functions for defining priors.:
CAR_prior()
,
joint_prior()
Examples
polynomial_block(mu = 1, D = 0.95) |>
block_mult(5) |>
zero_sum_prior()
#> Mixed DLM block.
#> latent states:
#> Var.Poly.1: Level (1 variable(s))
#> Var.Poly.2: Level (1 variable(s))
#> Var.Poly.3: Level (1 variable(s))
#> Var.Poly.4: Level (1 variable(s))
#> Var.Poly.5: Level (1 variable(s))
#>
#> Linear predictors:
#> mu.1
#> mu.2
#> mu.3
#> mu.4
#> mu.5
#>
#> Status: defined
#> Serie length: 1
#> Interventions at:
#> Number of latent states: 5
#> Number of linear predictors: 5