How to avoid negative simulated concentration values with add+prop RUV model #990
Replies: 3 comments
-
|
Hi @mark0935git - One way to handle this is to re-simulate [TABLE]
double C_CENT = CENT/V1;
double C_OBS = C_CENT*(1+PRV*EPS1) + ARV*EPS2;
int i = 0;
while(C_OBS < 0 && i++ < 20) {
simeps();
C_OBS = C_CENT*(1+PRV*EPS1) + ARV*EPS2;
}I'm not sure if the simulated I think this is the way to handle it if you want to keep the existing error model. The exponential error model would be equivalent to the proportional error; there also is a way to the equivalent of additive + proportional error on log-DV but that would change the model. Kyle |
Beta Was this translation helpful? Give feedback.
-
|
depending on what you are doing forcing the C_Obs to be > 0 via keep simulating until I find an epsilon I like, and link to the classic Beal double exp approach: |
Beta Was this translation helpful? Give feedback.
-
|
@smouksassi @kylebaron Thanks for your explanation! The problem is resolved nicely. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Mrgsolve developers,
I tried to simulate central compartment concentration using the PopPK model below. However, the simulated concentrations are negative sometimes.
I saw one similar post from 2017, where you suggested to "use exponential error model or resimulate EPS(1) with simeps() to keep concentrations positive"
Could you please give some examples on how to implement these approches?
Many thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions