diff options
Diffstat (limited to 'R')
-rw-r--r-- | R/estpoly.R | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/R/estpoly.R b/R/estpoly.R index 8c7494c..a458d2b 100644 --- a/R/estpoly.R +++ b/R/estpoly.R @@ -122,7 +122,7 @@ residplot <- function(model,newdata=NULL){ e <- resid(model); u <- model$input } else{ if(class(newdata)!="idframe") stop("Only idframe objects allowed") - e <- newdata$output[,1] - predict(model,newdata) + e <- newdata$output[,1] - predict(model,newdata)[,1] u <- newdata$input } |