diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2023-03-22 22:34:30 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2023-03-22 22:34:30 +0100 |
commit | b17dc3ee5f4fda17fcbc659730cb81e447510121 (patch) | |
tree | 17a7998c86166c950cd7a5cc2ff69b6bb8cd4f84 /R/mkinerrmin.R | |
parent | 262d4de5fb2c6e98367793650607b3baa4268fcc (diff) |
Fix typo in mkinerrmin
Thanks to Sebastian Meyer for spotting it.
Diffstat (limited to 'R/mkinerrmin.R')
-rw-r--r-- | R/mkinerrmin.R | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/R/mkinerrmin.R b/R/mkinerrmin.R index 388060d4..b924f4ab 100644 --- a/R/mkinerrmin.R +++ b/R/mkinerrmin.R @@ -58,7 +58,7 @@ mkinerrmin <- function(fit, alpha = 0.05) # Remove values at time zero for variables whose value for state.ini is fixed, # as these will not have any effect in the optimization and should therefore not # be counted as degrees of freedom. - fixed_initials = gsub("_0$", "", rownames(subset(fit$fixed, type = "state"))) + fixed_initials = gsub("_0$", "", rownames(subset(fit$fixed, type == "state"))) errdata <- subset(errdata, !(time == 0 & variable %in% fixed_initials)) n.optim.overall <- length(parms.optim) - length(fit$errparms) |