# compute the output gap given the previously obtained nawru and trend tfp
data("gap")
country <- "Belgium"
tsList <- amecoData2input(gap[[country]])
modelNAWRU <- NAWRUmodel(tsl = tsList)
modelTFP <- TFPmodel(tsl = tsList, cycle = "RAR2")
# \donttest{
fittedNAWRU <- fit(model = modelNAWRU)
fittedTFP <- fit(model = modelTFP)
gapProd(tsl = tsList, NAWRUfit = fittedNAWRU, TFPfit = fittedTFP)
# }
Run the code above in your browser using DataLab