summaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorSuraj Yerramilli2015-11-01 17:24:04 +0530
committerSuraj Yerramilli2015-11-01 17:24:04 +0530
commite667e99ca41524ece5701cad0a039a1b7e3f1701 (patch)
treed5088b7568c0bbcf88ea70fafa7d65526607466a /R
parent6831cda197096f326da5e69be94e6f15d499be62 (diff)
downloadSysID-R-code-e667e99ca41524ece5701cad0a039a1b7e3f1701.tar.gz
SysID-R-code-e667e99ca41524ece5701cad0a039a1b7e3f1701.tar.bz2
SysID-R-code-e667e99ca41524ece5701cad0a039a1b7e3f1701.zip
added data set for armax example
Diffstat (limited to 'R')
-rw-r--r--R/estpoly.R9
1 files changed, 5 insertions, 4 deletions
diff --git a/R/estpoly.R b/R/estpoly.R
index 958debb..c1a166f 100644
--- a/R/estpoly.R
+++ b/R/estpoly.R
@@ -239,10 +239,11 @@ arx <- function(x,order=c(0,1,0)){
#' Theory and Practice}, CRC Press, Boca Raton. Sections 14.4.1, 21.6.2
#'
#' @examples
-#' data(arxsim)
-#' model <- armax(data,c(1,2,1,2))
-#' summary(model) # obtain estimates and their covariances
-#' plot(model) # plot the predicted and actual responses
+#' data(armaxsim)
+#' z <- dataSlice(data,end=1533) # training set
+#' mod_armax <- armax(z,c(1,2,1,2))
+#' summary(mod_armax) # obtain estimates and their covariances
+#' plot(mod_armax) # plot the predicted and actual responses
#'
#' @export
armax <- function(x,order=c(0,1,1,0)){