# Modification of points used to calculate slope

**URL:** <https://discourse.pumas.ai/t/modification-of-points-used-to-calculate-slope/506>\
**Category:** NCA\
**Created:** [August 30, 2021, 1:05am UTC](https://discourse.pumas.ai/t/modification-of-points-used-to-calculate-slope/506 "2021-08-30T01:05:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![donaldlee3](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pumas.ai/donaldlee3/32/165_2.png) [@donaldlee3](https://discourse.pumas.ai/u/donaldlee3)\
**Post date:** [August 30, 2021, 1:05am UTC](https://discourse.pumas.ai/t/modification-of-points-used-to-calculate-slope/506/1 "2021-08-30T01:05:46Z")

</div>

Hello,

In simulations I’m running, I’m getting a lot of slopes not negative, so I looked at the pk profile for one of the id’s.

![image](https://canada1.discourse-cdn.com/flex030/uploads/pumas/original/1X/09e7273d68418b1fc9e0fc49d7d498486d0b0d59.png)

Is there a solution that would be feasible across many simulations (i.e., something that doesn’t involve manual manipulation of individual NCA runs/id’s).

I don’t think I have the ability to attach a file as a new user, so here’s the pasted data in case it helps:

|time|dv|  
|0.001|0.161915379|  
|2|0.150646588|  
|4|0.378161585|  
|5|0.426729701|  
|6|0.389811447|  
|7|0.439150713|  
|8|0.472714324|  
|10|0.688450261|  
|12|0.616121128|  
|14|0.48712011|  
|16|0.5518173|  
|20|0.706210206|  
|24|0.499248799|  
|29|0.508681025|  
|36|0.532048053|  
|43|0.502978878|  
|50|0.593361679|  
|57|0.37548746|  
|64|0.334175661|  
|71|0.400154777|  
|78|0.206014774|  
|85|0.431828928|  
|89|0.428725532|

---

<div class="post-metadata">

**Author:** ![donaldlee3](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pumas.ai/donaldlee3/32/165_2.png) [@donaldlee3](https://discourse.pumas.ai/u/donaldlee3)\
**Post date:** [August 30, 2021, 1:06am UTC](https://discourse.pumas.ai/t/modification-of-points-used-to-calculate-slope/506/2 "2021-08-30T01:06:21Z")

</div>

Posting here b/c new user and can’t post 2 images in one post:

![image](https://canada1.discourse-cdn.com/flex030/uploads/pumas/original/1X/9e539bd709f9f86378c38cab15fd0a2e068dfe7e.png)

---

<div class="post-metadata">

**Author:** ![andreasnoack](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pumas.ai/andreasnoack/32/22_2.png) [@andreasnoack](https://discourse.pumas.ai/u/andreasnoack)\
**Post date:** [August 30, 2021, 8:37am UTC](https://discourse.pumas.ai/t/modification-of-points-used-to-calculate-slope/506/3 "2021-08-30T08:37:28Z")

</div>

> Is there a solution that would be feasible across many simulations (i.e., something that doesn’t involve manual manipulation of individual NCA runs)

Could you describe how the manual procedure works?

Would you be able to fit a proper model to estimate the coefficient instead of relying on NCA here? The NCA methodology for computing the elimination rate constant where you increment the sample size to maximize adjusted R² seems generally problematic to me. In particular if you have a model with a relatively large residual error and possibly slow elimination.
