aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2021-03-20 21:26:40 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2021-03-20 21:26:40 +0100
commit34d1c5f23edfb60548bc5a9dd99c2f3af92acef1 (patch)
tree6288a76b77771996231e85d731e9c010d39248d0 /R
parent6d6dc7d53bf99b088af3488588574afc832fb7fe (diff)
Fix mkin calculation of saemix residuals
Diffstat (limited to 'R')
-rw-r--r--R/saem.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/saem.R b/R/saem.R
index 184890f4..6f28a47a 100644
--- a/R/saem.R
+++ b/R/saem.R
@@ -164,7 +164,7 @@ saem.mmkin <- function(object,
xidep = return_data[c("time", "name")])
return_data <- transform(return_data,
- residual = predicted - value,
+ residual = value - predicted,
std = sigma_twocomp(predicted,
f_saemix@results@respar[1], f_saemix@results@respar[2]))
return_data <- transform(return_data,

Contact - Imprint