On Apr 1, 2014, at 8:28 PM, Linas Mockus <
linasm...@gmail.com> wrote:
> Thanks, Ben. How to allow situations such as A,B>0 but C<0? The plasma concentration profile may be represented as a sum of exponentials with positive and negative coefficients.
Unless you know something about the constraints on values,
the bounds on C given A and B are data dependent. You can
just do the algebra, though:
0 < A * exp(-k1 * time) + B * exp(-k2 * time) + C * exp(-k3 * time)
iff
-[A * exp(-k1 * time) + B * exp(-k2 * time)] < C * exp(-k3 * time)
iff
-[A * exp(-k1 * time) + B * exp(-k2 * time)] / exp(-k3 * time) < C
So you need to take the lower bound for C to be
max_{k1,k2,k3,time}
-[A * exp(-k1 * time) + B * exp(-k2 * time)]
/ exp(-k3 * time)
It may not actually be possible to calculate this in Stan, because
you need the bound at the point you declare C, at least to support
the direct constraint approach.
>
> I think when I am done with this model I am willing to donate the model (standard 2-compartmental) along with anti-cancer drug data (documented in open literature) as an example of PK modeling in Stan.
Thanks. That'd be great, and we'd of course provide
attribution and proper credit!
- Bob
> You received this message because you are subscribed to the Google Groups "stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
stan-users+...@googlegroups.com.