Learn R Programming

sysid (version 1.0.4)

compare: Compare the measured output and the predicted output(s)

Description

Plots the output predictions of model(s) superimposed over validation data, data, for comparison.

Usage

compare(data, nahead = 1, ...)

Arguments

data
validation data in the form of an idframe object
nahead
number of steps ahead at which to predict (Default:1). For infinite- step ahead predictions, supply Inf.
...
models whose predictions are to be compared

See Also

predict.estpoly for obtaining model predictions

Examples

Run this code
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