summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuraj Yerramilli2015-06-09 15:59:54 +0530
committerSuraj Yerramilli2015-06-09 15:59:54 +0530
commit55ae82f8079cb402276ca3b6e1a5318147b5dfac (patch)
treec0670253c592f0fbcf86b3651a4ef1e77260f4a2
parent8228ae29bbd52ca62790bd0af276f52162046c6c (diff)
downloadSysID-R-code-55ae82f8079cb402276ca3b6e1a5318147b5dfac.tar.gz
SysID-R-code-55ae82f8079cb402276ca3b6e1a5318147b5dfac.tar.bz2
SysID-R-code-55ae82f8079cb402276ca3b6e1a5318147b5dfac.zip
Minor Changes
-rw-r--r--R/estpoly.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/estpoly.R b/R/estpoly.R
index 3a3eed1..4068903 100644
--- a/R/estpoly.R
+++ b/R/estpoly.R
@@ -127,7 +127,7 @@ predict.estARX <- function(model,newdata=NULL){
if(is.null(newdata)){
return(fitted(model))
} else{
- return(sim(coef(model),as.numeric(newdata$input)))
+ return(sim(coef(model),newdata$input))
}
}