noise_block {kDGLM}R Documentation

noise_block

Description

Creates the structure for a Noise block. This block represents an independent random noise that should be added to the linear predictor. The variance of the noise cannot be formally estimated, as such we use a discount strategy similar to that of West and Harrison (1997) to specify it.

Usage

noise_block(..., name = "Noise", D = 0.99, R1 = 0.1, H = 0)

Arguments

...

Named values for the planning matrix.

name

String: An optional argument providing the name for this block. Can be useful to identify the models with meaningful labels, also, the name used will be used in some auxiliary functions.

D

scalar or vector: A sequence of values specifying the desired discount factor for each time. It should have length 1 or t, where t is the size of the series. If both D and H are specified, the value of D is ignored.

R1

scalar: The prior variance of the noise.

H

scalar: The variance of the noise. If both D and H are specified, the value of D is ignored.

Details

For the details about the implementation see dos Santos et al. (2024).

For the details about dynamic regression models in the context of DLMs, see West and Harrison (1997), chapters 6 and 9.

Value

A dlm_block object containing the following values:

References

Mike West, Jeff Harrison (1997). Bayesian Forecasting and Dynamic Models (Springer Series in Statistics). Springer-Verlag. ISBN 0387947256.

Junior, Silvaneo Vieira dos Santos, Mariane Branco Alves, Helio S. Migon (2024). “kDGLM: an R package for Bayesian analysis of Dynamic Generialized Linear Models.”

See Also

fit_model

Other auxiliary functions for structural blocks: TF_block(), block_mult(), block_rename(), block_superpos(), harmonic_block(), intervention(), polynomial_block(), regression_block(), specify.dlm_block(), summary.dlm_block()

Examples


noise_block(mu = 1, D = 0.99, R1 = 1e-2)


[Package kDGLM version 1.2.0 Index]