powered by
Plots the output predictions of model(s) superimposed over validation data, data, for comparison.
compare(data, nahead = 1, ...)
validation data in the form of an idframe object
idframe
number of steps ahead at which to predict (Default:1). For infinite- step ahead predictions, supply Inf.
Inf
models whose predictions are to be compared
predict.estpoly for obtaining model predictions
predict.estpoly
data(arxsim) mod1 <- arx(arxsim,c(1,2,2)) mod2 <- oe(arxsim,c(2,1,1)) compare(arxsim,nahead=Inf,mod1,mod2)
Run the code above in your browser using DataLab