R/baseIRF.R

"baseIRF" <-
  function(irfvec, indexlow, indexhigh, removeNeg = FALSE) {
    irfvec <- irfvec - mean(irfvec[indexlow:indexhigh])
    if (removeNeg) {
      irfvec[which(irfvec < 0)] <- 0
    }
    irfvec
  }
glotaran/TIMP documentation built on Feb. 11, 2023, 4:11 a.m.