"baseIRF" <-
function(irfvec, indexlow, indexhigh, removeNeg = FALSE) {
irfvec <- irfvec - mean(irfvec[indexlow:indexhigh])
if (removeNeg) {
irfvec[which(irfvec < 0)] <- 0
}
irfvec
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.