summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NAMESPACE1
-rw-r--r--R/estpoly.R4
-rw-r--r--R/poly.R2
3 files changed, 4 insertions, 3 deletions
diff --git a/NAMESPACE b/NAMESPACE
index 6dc24e8..2764a50 100644
--- a/NAMESPACE
+++ b/NAMESPACE
@@ -18,6 +18,7 @@ S3method(plot,idfrd)
S3method(plot,impulseest)
S3method(predict,detrend)
S3method(predict,estPoly)
+S3method(print,estPoly)
S3method(print,idpoly)
S3method(print,summary.estPoly)
S3method(print,summary.idframe)
diff --git a/R/estpoly.R b/R/estpoly.R
index 993fc46..7664264 100644
--- a/R/estpoly.R
+++ b/R/estpoly.R
@@ -71,10 +71,10 @@ summary.estPoly <- function(object)
#' @export
print.summary.estPoly <- function(object,...){
- print(object$model)
+ print(object$model,...)
cat("Call: ");print(object$call);cat("\n\n")
- print(coef(object))
+ print(coef(object),...)
cat(paste("\nMSE:",format(object$mse,digits=4),
"\tFPE:",format(object$fpe,digits=4)))
if(object$model$type=="arx") cat(paste("\nDoF:",object$df))
diff --git a/R/poly.R b/R/poly.R
index 5dbdcf5..4aad013 100644
--- a/R/poly.R
+++ b/R/poly.R
@@ -54,7 +54,7 @@ checkUnity <- function(x){
}
#' @export
-print.idpoly <- function(mod){
+print.idpoly <- function(mod,...){
if(mod$type=="arx"){
cat("Discrete-time ARX mod: A(q^{-1})y[k] = B(q^{-1})u[k] + e[k] \n\n")