Skip to content

Commit a90b7d9

Browse files
committed
Adding mixed frequency.
1 parent 866809d commit a90b7d9

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

R/DFM.R

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@
147147
#' VARselect(IC_small$F_pca[, 1:2])
148148
#'
149149
#' # Estimating the model with 2 factors and 3 lags
150-
#' dfm_small = DFM(BM14[, BM14_Models$small], 2, 3)
150+
#' dfm_small = DFM(BM14[, BM14_Models$small], r = 2, p = 3,
151+
#' quarterly.vars = BM14_Models %$% series[freq == "Q" & small])
151152
#'
152153
#' # Inspecting the model
153154
#' summary(dfm_small)
@@ -170,7 +171,8 @@
170171
#' VARselect(IC_medium$F_pca[, 1:3])
171172
#'
172173
#' # Estimating the model with 3 factors and 3 lags
173-
#' dfm_medium = DFM(BM14[, BM14_Models$medium], 3, 3)
174+
#' dfm_medium = DFM(BM14[, BM14_Models$medium], r = 3, p = 3,
175+
#' quarterly.vars = BM14_Models %$% series[freq == "Q" & medium])
174176
#'
175177
#' # Inspecting the model
176178
#' summary(dfm_medium)
@@ -193,7 +195,8 @@
193195
#' VARselect(IC_large$F_pca[, 1:6])
194196
#'
195197
#' # Estimating the model with 6 factors and 3 lags
196-
#' dfm_large = DFM(BM14, 6, 3)
198+
#' dfm_large = DFM(BM14, r = 6, p = 3,
199+
#' quarterly.vars = BM14_Models %$% series[freq == "Q"])
197200
#'
198201
#' # Inspecting the model
199202
#' summary(dfm_large)

man/DFM.Rd

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)