aboutsummaryrefslogtreecommitdiff
path: root/R/nlme.mmkin.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-11-09 11:59:16 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2020-11-09 11:59:16 +0100
commita52d76a13f36c112e27383af1cac3f98b1bbed0a (patch)
tree18f61d83823fad7ae67d1ada1975d4e1d7781dfc /R/nlme.mmkin.R
parent8ba0bc6f52183ad97377e4d13d082be13b0383bd (diff)
object$mmkin_orig -> object$mmkin
Diffstat (limited to 'R/nlme.mmkin.R')
-rw-r--r--R/nlme.mmkin.R6
1 files changed, 3 insertions, 3 deletions
diff --git a/R/nlme.mmkin.R b/R/nlme.mmkin.R
index af92e8a1..ca849b85 100644
--- a/R/nlme.mmkin.R
+++ b/R/nlme.mmkin.R
@@ -183,7 +183,7 @@ nlme.mmkin <- function(model, data = sys.frame(sys.parent()),
val$mkinmod <- model[[1]]$mkinmod
val$data <- thisCall[["data"]]
- val$mmkin_orig <- model
+ val$mmkin <- model
val$mean_dp_start <- mean_dp_start
val$transform_rates <- model[[1]]$transform_rates
val$transform_fractions <- model[[1]]$transform_fractions
@@ -211,7 +211,7 @@ print.nlme.mmkin <- function(x, ...) {
cat( "Kinetic nonlinear mixed-effects model fit by " )
cat( if(x$method == "REML") "REML\n" else "maximum likelihood\n")
cat("\nStructural model:\n")
- diffs <- x$mmkin_orig[[1]]$mkinmod$diffs
+ diffs <- x$mmkin[[1]]$mkinmod$diffs
nice_diffs <- gsub("^(d.*) =", "\\1/dt =", diffs)
writeLines(strwrap(nice_diffs, exdent = 11))
cat("\nData:\n")
@@ -239,7 +239,7 @@ print.nlme.mmkin <- function(x, ...) {
#' @param ... Update specifications passed to update.nlme
update.nlme.mmkin <- function(object, ...) {
res <- NextMethod()
- res$mmkin_orig <- object$mmkin_orig
+ res$mmkin <- object$mmkin
class(res) <- c("nlme.mmkin", "nlme", "lme")
return(res)
}

Contact - Imprint