aboutsummaryrefslogtreecommitdiff
path: root/R/nlme.mmkin.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-11-10 05:14:57 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2020-11-10 05:14:57 +0100
commit606ef9ad6cae0ddfae6db6b90deb03f81140e46f (patch)
tree5a0a581a2251621efdcbd5a5c425cb04eca306f5 /R/nlme.mmkin.R
parent96500fa127b59bddb2fcfe77b7b97415bd105f4a (diff)
Digits for summary methods, print.saem.mmkin
Diffstat (limited to 'R/nlme.mmkin.R')
-rw-r--r--R/nlme.mmkin.R7
1 files changed, 4 insertions, 3 deletions
diff --git a/R/nlme.mmkin.R b/R/nlme.mmkin.R
index d26b86ac..a9e1694f 100644
--- a/R/nlme.mmkin.R
+++ b/R/nlme.mmkin.R
@@ -210,7 +210,8 @@ nlme.mmkin <- function(model, data = sys.frame(sys.parent()),
#' @export
#' @rdname nlme.mmkin
#' @param x An nlme.mmkin object to print
-print.nlme.mmkin <- function(x, ...) {
+#' @param digits Number of digits to use for printing
+print.nlme.mmkin <- function(x, digits = max(3, getOption("digits") - 3), ...) {
cat( "Kinetic nonlinear mixed-effects model fit by " )
cat( if(x$method == "REML") "REML\n" else "maximum likelihood\n")
cat("\nStructural model:\n")
@@ -230,9 +231,9 @@ print.nlme.mmkin <- function(x, ...) {
x$call$fixed
else
lapply(fixF, function(el) as.name(deparse(el)))), "\n")
- print(fixef(x), ...)
+ print(fixef(x), digits = digits, ...)
cat("\n")
- print(summary(x$modelStruct), sigma = x$sigma, ...)
+ print(summary(x$modelStruct), sigma = x$sigma, digits = digits, ...)
invisible(x)
}

Contact - Imprint