summaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
Diffstat (limited to 'R')
-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))
}
}