Skip to content

Commit

Permalink
Style code
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 24, 2024
1 parent fa7446f commit f8cd81a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion R/fe.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#' fe(v, 10)
#'
fe <- function(var, horizon = 1) {

## Declare this to avoid "no visible binding" warning
`%^%` <- expm::`%^%`

Expand Down
3 changes: 1 addition & 2 deletions R/forecast.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#' forecast(v, 10)
#'
forecast <- function(var, horizon = 1) {

## Declare this to avoid "no visible binding" warning
`%^%` <- expm::`%^%`

Expand Down Expand Up @@ -49,7 +48,7 @@ forecast <- function(var, horizon = 1) {

non_const <- (ssv$mx %^% (horizon)) %*% t(as.matrix(x_lag))

x_hat_h <- t(c(ssv$my %*% const) + ssv$my %*% non_const)
x_hat_h <- t(c(ssv$my %*% const) + ssv$my %*% non_const)

x_hat_h <- rbind(matrix(NA, var$p + (horizon - 1), var$K), x_hat_h)
colnames(x_hat_h) <- colnames(x)
Expand Down
6 changes: 2 additions & 4 deletions R/irf.R
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,8 @@ irf.bvartools <- function(
#' @return array of irfs, dimensions = c(response, shock, horizon)
#'
irf_ssv <- function(
ssv,
n_ahead = 10
) {

ssv,
n_ahead = 10) {
## Declare this to avoid "no visible binding" warning
`%^%` <- expm::`%^%`

Expand Down

0 comments on commit f8cd81a

Please sign in to comment.