No interpolation [NCA / SHAM]
❝ I will change the way of AUC calculation with bear later.
Relax. Would make only sense if the user has a choice. Some people still get crazy if one tries anything else than the linear trapezoidal.
Don’t use my code without improving it! In its current form it will not work with NAs and/or isolated BQLs within the profile.
❝ I remembered that I read something about method comparisons for trapezoidal rule in one textbook, but just cannot remember which book.
Yes. I think I have posted even references somewhere. To lazy to search now.
❝ ❝ ...
❝ ❝ B1.1 <- C0.1*k01.1/(k01.1-K)*exp(k10*tlag1)
❝ ❝ B2.1 <- C0.1*k01.1/(k01.1-K)*exp(k01.1*tlag1)
❝ Here I got Error: object 'K' not found
and some error messages after this.
Sorry, I made a copy/paste error. Should work now (use
k10
instead of K
).❝ One more question, in your above presentation (slide#17[edited]; missing data occurred in R at 12h), it was a lin-up/log-down plot.
Nope. 16/17 are linear plots. In slide 16 I connected all points by straight lines (what the linear trap. would do), and in slide 17 by straight lines if ascending and by an exponential if descending.
❝ As you said that no need to do data imputation if using lin-up/log-down. Do you do any line smoothing with your data first?
No.
❝ Otherwise, the line should not be connected in that way. It should be connected as the line that the arrow points.
Why?
❝ Do I miss anything here?
Yes, you do.

t C
8 33.17
12 miss.
16 7.86
Interpolated values for imputation:
linear: C12*=33.17+|(12-8)/(16-8)|(7.86-33.17)=20.52
linlog: C12*=exp(log(33.17)+|(12-8)/(16-8)|log(7.86/33.17))=16.15
Calculation based on imputed values:
linear/lin imp.: pAUC8-16=0.5(12- 8)(33.17+20.52)+
0.5(16-12)(20.52+ 7.86)=164.1
linear/log imp.: pAUC8-16=0.5(12- 8)(33.17+20.52)+
0.5(16-12)(20.52+ 7.86)=146.7
linlog/log imp.: pAUC8-16=(12- 8)(16.15-33.17)/log(16.15/33.17)+
(16-12)( 7.86-16.15)/log( 7.86/16.15)=140.6
Direct calculation without imputation:
linear: pAUC8-16=0.5(16-8)(33.17+7.86)=164.1
linlog: pAUC8-16=(16-8)(7.86-33.17)/log(7.86/33.17)=140.6
BTW, the theoretical pAUC8-16 based on the model is 140.62…
To make a long story short: Only if one has to use the linear trapezoidal (for whatever wacky reasons) I would impute an estimate based on the log/linear interpolation (second variant above). Otherwise the bias is substantial. Q.E.D.
Dif-tor heh smusma 🖖🏼 Довге життя Україна!
![[image]](https://static.bebac.at/pics/Blue_and_yellow_ribbon_UA.png)
Helmut Schütz
![[image]](https://static.bebac.at/img/CC by.png)
The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Complete thread:
- handling of missing data gracehung 2013-05-20 07:35 [NCA / SHAM]
- Lin-up/log-down trapezoidal avoids most trouble Helmut 2013-05-20 14:22
- Lin-up/log-down trapezoidal avoids most trouble yjlee168 2013-05-22 08:25
- Multiple peaks: fallback to linear trapezoidal Helmut 2013-05-22 20:25
- Multiple peaks: fallback to linear trapezoidal yjlee168 2013-05-22 21:57
- No interpolationHelmut 2013-05-22 23:25
- No interpolation yjlee168 2013-05-23 11:43
- Spaghetti & other pasta Helmut 2013-05-23 15:15
- Spaghetti & other pasta yjlee168 2013-05-23 20:47
- Spaghetti & other pasta Helmut 2013-05-23 21:29
- Spaghetti & other pasta yjlee168 2013-05-23 22:46
- Spaghetti & other pasta Helmut 2013-05-24 01:24
- Spaghetti & other pasta yjlee168 2013-05-24 09:17
- Spaghetti & other pasta Helmut 2013-05-24 01:24
- Spaghetti & other pasta yjlee168 2013-05-23 22:46
- Spaghetti & other pasta Helmut 2013-05-23 21:29
- Spaghetti & other pasta yjlee168 2013-05-23 20:47
- Spaghetti & other pasta Helmut 2013-05-23 15:15
- No interpolation Ken Peh 2013-05-30 19:55
- Different algos! Helmut 2013-05-30 22:38
- Different algos! Ken Peh 2013-06-03 17:52
- Calculate what? Helmut 2013-06-03 18:11
- Different algos! Ken Peh 2013-06-03 17:52
- Different algos! Helmut 2013-05-30 22:38
- No interpolation yjlee168 2013-05-23 11:43
- No interpolationHelmut 2013-05-22 23:25
- Multiple peaks: fallback to linear trapezoidal yjlee168 2013-05-22 21:57
- Lin-up/log-down trapezoidal example Helmut 2013-05-25 15:09
- Lin-up/log-down trapezoidal example yjlee168 2013-05-25 19:45
- Multiple peaks: fallback to linear trapezoidal Helmut 2013-05-22 20:25
- Lin-up/log-down trapezoidal avoids most trouble yjlee168 2013-05-22 08:25
- handling of missing data Ohlbe 2013-05-20 21:45
- Sorry Helmut 2013-05-21 13:53
- Sorry gracehung 2013-05-23 01:06
- Uncertain time point Helmut 2013-05-23 01:35
- Sorry gracehung 2013-05-23 01:06
- Sorry Helmut 2013-05-21 13:53
- Lin-up/log-down trapezoidal avoids most trouble Helmut 2013-05-20 14:22