I'm using the code
pib <- BETS.get(22099)
To pull PIB , it happens that it pulls from 1995 to 2017 , and I only need 2007.01 in> to 2013,12 . How do I pull only the period I need for the model? Then I need to use the code
dpib <- (((pib+lag(pib,-1)+lag(pib,-2)+lag(pib,-3))/4)/
((lag(pib,-4)+lag(pib,-5)+lag(pib,-6)+lag(pib,-7))/4)-1)*100
To know what the GDP variation was in the period. Thank you.