R/get_Z0.R

Defines functions get_Z0

Documented in get_Z0

#' @title Get Z0
#'
#' @param endogenous is the endogenous variables part of the data set
#' @param lags is the number of lags in levels in the model
#'
#' @return Z0 - an xts object

get_Z0 <- function(endogenous, lags) {
  Z0 <- diff(endogenous)
  Z0 <- Z0[-(1:lags),]
  return(Z0)
}
EmilNejst/Rcivecm documentation built on May 6, 2019, 3:47 p.m.