Creates a forecast based on the empirical marginal distribution using the mean of the p most recent observations.

MarginalModel(p = NULL)

Arguments

p

Number of most recent observations to use (default: all observations)

Value

A spec for a Julia `MarginalModel`, built when it is fitted (see [juliabridge::julia_spec()])

Examples

if (FALSE) { # \dontrun{
model <- MarginalModel(p = 10)
} # }