aboutsummaryrefslogtreecommitdiff
path: root/R/mkinerrmin.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/mkinerrmin.R')
-rw-r--r--R/mkinerrmin.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/mkinerrmin.R b/R/mkinerrmin.R
index b361c466..c0c6fad7 100644
--- a/R/mkinerrmin.R
+++ b/R/mkinerrmin.R
@@ -42,7 +42,7 @@ mkinerrmin <- function(fit, alpha = 0.05)
fixed_initials = gsub("_0$", "", rownames(subset(fit$fixed, type = "state")))
errdata <- subset(errdata, !(time == 0 & name %in% fixed_initials))
- n.optim.overall <- length(parms.optim)
+ n.optim.overall <- length(parms.optim) - length(fit$errparms)
errmin.overall <- kinerrmin(errdata, n.optim.overall)
errmin <- data.frame(err.min = errmin.overall$err.min,

Contact - Imprint