From 40e51ed9dc9fa9b7283c44ba73a22c17c808e0ea Mon Sep 17 00:00:00 2001 From: "Matthew L. Fidler" Date: Sat, 6 Apr 2024 23:19:01 -0500 Subject: [PATCH] Add hack fix --- src/rxData.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rxData.cpp b/src/rxData.cpp index f807444b8..fd8f772e8 100644 --- a/src/rxData.cpp +++ b/src/rxData.cpp @@ -3292,6 +3292,9 @@ static inline void rxSolve_simulate(const RObject &obj, if (!cbindPar1) { params0 = as>(rxSolveDat->par1); } + curObs++; // sometimes there is trailing non-observation evids + // (though this is an edge case, probably related to NA + // times; See #670) List lst = rxSimThetaOmega(params0, omega, omegaDf,