summaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorSuraj Yerramilli2015-11-02 13:02:56 +0530
committerSuraj Yerramilli2015-11-02 13:02:56 +0530
commit77f98515a1fa824e673b25b952d2f68ef594c0a5 (patch)
tree30fbdf7e8e1afd6634052a659c51f3219f208d9c /R
parent770ce584b01b433df1fe02acfed36c76b6d163e1 (diff)
downloadSysID-R-code-77f98515a1fa824e673b25b952d2f68ef594c0a5.tar.gz
SysID-R-code-77f98515a1fa824e673b25b952d2f68ef594c0a5.tar.bz2
SysID-R-code-77f98515a1fa824e673b25b952d2f68ef594c0a5.zip
modified summary print
Diffstat (limited to 'R')
-rw-r--r--R/estpoly.R8
1 files changed, 2 insertions, 6 deletions
diff --git a/R/estpoly.R b/R/estpoly.R
index a458d2b..cb3de20 100644
--- a/R/estpoly.R
+++ b/R/estpoly.R
@@ -59,18 +59,14 @@ summary.estPoly <- function(object)
fpe <- det(mse)*(1+np/N)/(1-np/N)
res <- list(call=object$call,coefficients=TAB,mse = mse,
- fpe=fpe,df=object$df,type=model$type)
+ fpe=fpe,df=object$df,model=model)
class(res) <- "summary.estPoly"
res
}
#' @export
print.summary.estPoly <- function(object){
- if(object$type=="arx"){
- cat("Discrete-time ARX model: A(q^{-1})y[k] = B(q^{-1})u[k] + e[k] \n")
- } else if(object$type=="armax"){
- cat("Discrete-time ARMAX model: A(q^{-1})y[k] = B(q^{-1})u[k] + C(q^{-1})e[k] \n")
- }
+ print(object$model)
cat("Call: ");print(object$call);cat("\n\n")
print(coef(object))