last 3 time points [🇷 for BE/BA]
dear Yung-jin Lee !
good to hear that your code will be much more sophisticated than WinNonLin! I appreciate your efforts. you may find of interest that in the case of manual selection of the last 3 time points, the middle time point is “useless” to calculate lambda_z by using the OLS fitting criteria in the case of equidistant measurement time points. in this case, the middle data tuple only effects the intercept but not the slope (=lambda_z). you may think about implementing a warning message in this case.
the theoretical background for this unexpected behavior rather complicated but I can provide you some information upon request.
some examples:
good to hear that your code will be much more sophisticated than WinNonLin! I appreciate your efforts. you may find of interest that in the case of manual selection of the last 3 time points, the middle time point is “useless” to calculate lambda_z by using the OLS fitting criteria in the case of equidistant measurement time points. in this case, the middle data tuple only effects the intercept but not the slope (=lambda_z). you may think about implementing a warning message in this case.
the theoretical background for this unexpected behavior rather complicated but I can provide you some information upon request.
some examples:
t <- c(10, 12, 14) # equidistant time points
c1 <- c(5, 4, 1)
c2 <- rnorm(3)
c3 <- runif(3)
lm(c1~t)
lm(c1[-2]~t[-2])
lm(c2~t)
lm(c2[-2]~t[-2])
lm(c3~t)
lm(c3[-2]~t[-2])
Complete thread:
- update: bear v1.1.4 for R (a free tool for ABE) yjlee168 2008-09-17 13:33
- update: bear v1.1.4 for R (a free tool for ABE) Helmut 2008-09-17 16:59
- update: bear v1.1.4 for R (a free tool for ABE) yjlee168 2008-09-17 21:03
- update: bear v1.1.4 for R (a free tool for ABE) martin 2008-09-19 13:13
- update: bear v1.1.4 for R (a free tool for ABE) yjlee168 2008-09-22 18:19
- update: bear v1.1.4 for R (a free tool for ABE) Helmut 2008-09-23 00:46
- update: bear v1.1.4 for R (a free tool for ABE) martin 2008-09-27 09:37
- Package lee for R Helmut 2008-09-27 14:05
- update: bear v1.1.4 for R (a free tool for ABE) martin 2008-09-27 09:37
- update: bear v1.1.4 for R (a free tool for ABE) yjlee168 2008-09-23 10:07
- update: bear v1.1.4 for R (a free tool for ABE) martin 2008-09-27 09:25
- update: bear v1.1.4 for R (a free tool for ABE) yjlee168 2008-09-29 12:03
- update: bear v1.1.4 for R (a free tool for ABE) Helmut 2008-09-29 12:10
- update: bear v1.1.4 for R (a free tool for ABE) yjlee168 2008-09-29 13:07
- modified function for selection of time points martin 2008-10-11 15:30
- modified function for selection of time points yjlee168 2008-10-11 19:45
- last 3 time pointsmartin 2008-10-12 00:04
- modified function for selection of time points yjlee168 2008-10-16 11:20
- modified function for selection of time points Aceto81 2008-10-16 12:09
- modified code martin 2008-10-16 12:29
- modified code Aceto81 2008-10-16 14:11
- modified code martin 2008-10-16 12:29
- modified function for selection of time points Aceto81 2008-10-16 12:09
- modified function for selection of time points yjlee168 2008-10-11 19:45
- modified function for selection of time points martin 2008-10-11 15:30
- update: bear v1.1.4 for R (a free tool for ABE) yjlee168 2008-09-29 13:07
- update: bear v1.1.4 for R (a free tool for ABE) Helmut 2008-09-29 12:10
- update: bear v1.1.4 for R (a free tool for ABE) yjlee168 2008-09-29 12:03
- update: bear v1.1.4 for R (a free tool for ABE) martin 2008-09-27 09:25
- update: bear v1.1.4 for R (a free tool for ABE) Helmut 2008-09-17 16:59