summaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorSuraj Yerramilli2015-09-09 09:34:47 +0530
committerSuraj Yerramilli2015-09-09 09:34:47 +0530
commit0e40d0e19f699c3cb032253438c18242f06207f3 (patch)
treeddf9558cdc3d24f4672cd4027c16d8a3b0b95faf /R
parent55aae231ad3e2feec4ad2f7be1daeb83e4452b52 (diff)
downloadSysID-R-code-0e40d0e19f699c3cb032253438c18242f06207f3.tar.gz
SysID-R-code-0e40d0e19f699c3cb032253438c18242f06207f3.tar.bz2
SysID-R-code-0e40d0e19f699c3cb032253438c18242f06207f3.zip
Corrections in the residplot
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 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
}