R/compute_Theta.R

Defines functions compute_Theta

Documented in compute_Theta

#' compute_Theta
#'
#' @param Phi
#' @param B_0
#'
#' @return
#' @export
#'
#' @description Helper function used to compute Theta coefficients as in Kilian, Luetkepohl
compute_Theta = function(Phi, B_0) {

  # THESE ARE THE IRFS!!!! Rework IRF function
  Theta = lapply(1:length(Phi), function(i) {
    Phi[[i]] %*% solve(B_0)
  })

  return(Theta)

}
pat-alt/SVAA documentation built on Jan. 19, 2024, 7:45 p.m.