diff options
-rw-r--r-- | R/predict.R | 13 | ||||
-rw-r--r-- | man/compare.Rd | 25 |
2 files changed, 38 insertions, 0 deletions
diff --git a/R/predict.R b/R/predict.R index 8d07ad2..3de8ef2 100644 --- a/R/predict.R +++ b/R/predict.R @@ -54,6 +54,19 @@ predict.estpoly <- function(x,newdata=NULL,nahead=1){ } } +#' Compare the measured output and the predicted output(s) +#' +#' Plots the output predictions of model(s) superimposed over validation data, +#' data, for comparison. +#' +#' @param data validation data in the form of an \code{idframe} object +#' @param nahead number of steps ahead at which to predict +#' @param \ldots models whose predictions are to be compared +#' +#' @examples +#' data(arxsim) +#' compare(data,nahead=1,mod1,mod2,mod3) +#' #' @import ggplot2 reshape2 #' @export compare <- function(data,nahead=1,...){ diff --git a/man/compare.Rd b/man/compare.Rd new file mode 100644 index 0000000..3a40549 --- /dev/null +++ b/man/compare.Rd @@ -0,0 +1,25 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/predict.R +\name{compare} +\alias{compare} +\title{Compare the measured output and the predicted output(s)} +\usage{ +compare(data, nahead = 1, ...) +} +\arguments{ +\item{data}{validation data in the form of an \code{idframe} object} + +\item{nahead}{number of steps ahead at which to predict} + +\item{\ldots}{models whose predictions are to be compared} +} +\description{ +Plots the output predictions of model(s) superimposed over validation data, +data, for comparison. +} +\examples{ +data(arxsim) +compare(data,nahead=1,mod1,mod2,mod3) + +} + |