if (FALSE) {
data("cpichg")
GASSpec = UniGASSpec(Dist = "std", ScalingType = "Identity",
GASPar = list(location = TRUE, scale = TRUE,
shape = FALSE))
Roll = UniGASRoll(cpichg, GASSpec, ForecastLength = 50,
RefitEvery = 10, RefitWindow = c("moving"))
BackTest = BacktestDensity(Roll, lower = -100, upper = 100)
BackTest$average
}
Run the code above in your browser using DataLab