diff options
-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 604cbfc..7694a9a 100644 --- a/R/estpoly.R +++ b/R/estpoly.R @@ -78,7 +78,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$input) + e <- newdata$output[,1] - predict(model,newdata) u <- newdata$input } |