oldFunctions/model_build_3.R

#' Model building for DLM
#'
#' @param p used in DLM modelling
#'
#' @return DLM
#' @export
#'
#' @examples Quarterly seasonal model
model.build.3 <- function(p) {
  return(
    dlmModPoly(2, dV=p[1], dW=p[2:3]) +
      dlmModSeas(4, dV=p[4])
  )
}
ryanbieber/Time-Series-Catch-All documentation built on Oct. 13, 2020, 9:59 a.m.