| SpecDLM-class | R Documentation |
An object of class SpecDLM specifies a prior
in which elements that are next to each other are
are expected to be more similar than elements that
are distant for each other. DLMs are typically used to
model variation over time, but are often also appropriate
for variation over age.
The prior consists of a level term, optional trend,
seasonal, and covariates terms, and an error term.
The error term can follow a normal or t distribution.
For details, see the documentation for function
DLM.
alongThe name of the dimension that the time series (or age equivalents) extend along.
phiDamping parameter.
phiKnownWhether the damping parameter is known or is estimated from the data.
minPhiMinimum value for the damping parameter.
maxPhiMaximum value for the damping parameter.
nuAlphaDegrees of freedom for the prior for the standard deviation for innovations in the level term.
AAlphaScale for the prior for the standard deviation for innovations in the level term.
omegaAlphaAMaxMaximum for the standard deviation for innovations in the level term.
nuDeltaDegrees of freedom for the prior for the standard deviation for innovations in the trend term.
ADeltaScale for the prior for the standard deviation for innovations in the trend term.
omegaDeltaAMaxMaximum for the standard deviation for innovations in the trend term.
nSeasonNumber of seasons.
nuSeasonDegrees of freedom for the prior for the standard deviation for innovations in the season term.
ASeasonScale for the prior for the standard deviation for innovations in the season term.
omegaSeasonAMaxMaximum for the standard deviation for innovations in the season term.
formulaA formula with response
mean.
dataA data.frame containing covariate data.
contrastsArgA named list, the elements which are matrices or names of contrasts functions.
AInterceptThe standard deviation for the prior for the intercept in the covariates term.
nuEtaCoefThe degrees of freedom for the prior for the coefficients in the covariates term.
AEtaCoefThe scale for the prior for the coefficients in the covariates term.
nuBetaThe degrees of freedom for the error term, if the error term has a t distribution.
nuTauThe degrees of freedom for the truncated half-t prior for the standard deviation or scale parameter for the error term.
ATauThe scale for the truncated half-t prior for the standard deviation or scale parameter for the error term.
maxTauThe maximum value for the standard deviation or scale parameter for the error term.
shape1PhiFirst 'sample size' parameter in beta prior for damping parameter.
shape2PhiSecond 'sample size' parameter in beta prior for damping parameter.
In normal usage, it should not be necessary to
access, or even know about, the slots of a
SpecDLM object. The slots are not part of
the API of the package, and may change in future.
Object of class SpecDLM are generated
using function DLM.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.