# Theoretical Cmax value for a PK study

**URL:** <https://forum.certara.com/t/theoretical-cmax-value-for-a-pk-study/3466>\
**Category:** Phoenix WNL basics\
**Created:** [January 10, 2020, 10:57pm UTC](https://forum.certara.com/t/theoretical-cmax-value-for-a-pk-study/3466 "2020-01-10T22:57:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![xli](https://avatars.discourse-cdn.com/v4/letter/x/bc79bd/32.png) [@xli](https://forum.certara.com/u/xli)\
**Post date:** [January 10, 2020, 10:57pm UTC](https://forum.certara.com/t/theoretical-cmax-value-for-a-pk-study/3466/1 "2020-01-10T22:57:37Z")

</div>

Could anyone know how to get the theoretical Cmax value for a PK study? Can Phoex WNL estimate this value?

Thank you very much,

---

<div class="post-metadata">

**Author:** ![Helmut\_Schuetz](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@Helmut\_Schuetz](https://forum.certara.com/u/Helmut_Schuetz)\
**Post date:** [January 11, 2020, 12:06am UTC](https://forum.certara.com/t/theoretical-cmax-value-for-a-pk-study/3466/2 "2020-01-11T00:06:17Z")

</div>

Hi,

only for a one-compartment model (with and without lag-time) the exact Cmax can be calculated from the model parameters:

1. The slope of tangent of the the function at any given time is positive before tmax (increasing values), zero at tmax, and negative (decreasing) afterwards. Hence, derive the function.
2. Find the root of the derivative (_i.e._, its intersection with the abscissa). Trivial – this is tmax. Example (no lag-time):  
tmax = ln(k01/k10)/(k01 – k10).
3. Plug in tmax in the function to get Cmax.

For other models the derivative cannot be obtained analytically. Therefore, you have to use a numeric method to find the maximum and its time.

Instead of paper/pencil/brain use software. In PHX/WNL both Cmax and tmax are given in the outputs as secondary parameters.

---

<div class="post-metadata">

**Author:** ![xli](https://avatars.discourse-cdn.com/v4/letter/x/bc79bd/32.png) [@xli](https://forum.certara.com/u/xli)\
**Post date:** [January 11, 2020, 12:18am UTC](https://forum.certara.com/t/theoretical-cmax-value-for-a-pk-study/3466/3 "2020-01-11T00:18:26Z")

</div>

Thank you very much, Helmut. I will digest at your answer. Have a nice weekend!

---

<div class="post-metadata">

**Author:** ![xli](https://avatars.discourse-cdn.com/v4/letter/x/bc79bd/32.png) [@xli](https://forum.certara.com/u/xli)\
**Post date:** [January 14, 2020, 5:20pm UTC](https://forum.certara.com/t/theoretical-cmax-value-for-a-pk-study/3466/4 "2020-01-14T17:20:09Z")

</div>

Hi Helmut,

I would like to confirm that the exact Cmax in your answer is the theoretical Cmax. Am I right?

Another, how to get the secondary parameters for a group of PK data?

Appreciate your help!

---

<div class="post-metadata">

**Author:** ![xli](https://avatars.discourse-cdn.com/v4/letter/x/bc79bd/32.png) [@xli](https://forum.certara.com/u/xli)\
**Post date:** [January 18, 2020, 1:22am UTC](https://forum.certara.com/t/theoretical-cmax-value-for-a-pk-study/3466/5 "2020-01-18T01:22:42Z")

</div>

Hi Experts,

I really need your help about how to get the theoretical Cmax value for a PK study. I am stuck here.

Could you please give me some hint about how to the theoretical value?

Appreciate your help in advance!

---

<div class="post-metadata">

**Author:** ![SimonDavis](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@SimonDavis](https://forum.certara.com/u/SimonDavis)\
**Post date:** [January 18, 2020, 9:32am UTC](https://forum.certara.com/t/theoretical-cmax-value-for-a-pk-study/3466/6 "2020-01-18T09:32:54Z")

</div>

HI Li, Helmut has already suggested that you can use the models of Phoenix to generate these secondary parameters.

first choose the button to ‘set WNL model’

and then use the drop downs to make your selections and then the relevant code will be generated when you click apply.

secondary(Ke = tvCl/tvV)  
secondary(Tmax = log(tvKa/Ke)/(tvKa-Ke)+tvTlag)  
secondary(AUC = AaDose/tvV/Ke)  
secondary(Cmax = AaDose/tvV_exp(-Ke_(Tmax-tvTlag)))  
secondary(Ka\_hl = log(2)/tvKa)  
secondary(Ke\_hl = log(2)/Ke)

Remember these are specific to the structural model chosen.

Simon.

 ![set_wnl_model.jpg](https://us1.discourse-cdn.com/certara/original/1X/cd1fffe25536ddc89048b0a4c290226223cbce1e.jpeg) ![apply.jpg](https://us1.discourse-cdn.com/certara/original/2X/1/15562e1b9dae17a201da6ff33e15aab834eb6a78.jpeg)

---

<div class="post-metadata">

**Author:** ![Helmut\_Schuetz](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@Helmut\_Schuetz](https://forum.certara.com/u/Helmut_Schuetz)\
**Post date:** [January 18, 2020, 4:58pm UTC](https://forum.certara.com/t/theoretical-cmax-value-for-a-pk-study/3466/7 "2020-01-18T16:58:33Z")

</div>

Hi,

> [@xli](#):
>
> Hi Helmut,
> 
> I would like to confirm that the exact Cmax in your answer is the theoretical Cmax. Am I right?

As I wrote already in my first post only in a one-compartment model (with and without lag-time) the theoretical Cmax can be derived by calculus/algebra. Hence, it is exact if you like.

For other models numeric methods are required. I don’t know which one is implemented is Phoenix (I’m a user with no access to its source code).

Brute force:

- Instead of the derivative dC/dt switch to [difference quotients](https://en.wikipedia.org/wiki/Difference_quotient) over the entire time range of interest, _i.e._, calculate Î´C/Î´t, where Î´t is a – very – small interval.
- Find the time point where Î´C/Î´t is sufficiently close to zero. That’s tmax. Plug it into the model to get Cmax.

More efficient are e.g., the [bisection method](https://en.wikipedia.org/wiki/Bisection_method) or the uniroot algorithm (Brent 1973, 2003) implemented in R and C.

But again, if you really want the _exact_ value, bad luck. The best you can get is a value which deviates not more than the numeric precision of the machine from the theoretical one. If you are not happy with ±3.6 ·10–16 on 64bit-machines get a number cruncher.

---

<div class="post-metadata">

**Author:** ![xli](https://avatars.discourse-cdn.com/v4/letter/x/bc79bd/32.png) [@xli](https://forum.certara.com/u/xli)\
**Post date:** [January 22, 2020, 1:12am UTC](https://forum.certara.com/t/theoretical-cmax-value-for-a-pk-study/3466/8 "2020-01-22T01:12:53Z")

</div>

Appreciate your patience and kind help, Dr. Schutz and Dr. Davis. Got it.
