billdenney/pknca

`superposition()` does not filter concentration data for missing values

Opened this issue · 0 comments

library(PKNCA)
#> 
#> Attaching package: 'PKNCA'
#> The following object is masked from 'package:stats':
#> 
#>     filter
superposition(
  conc = c(0, 0, 10, 31, 54, 73, 79, 62, 55, 31, 21, 10, 4, 5, 5, 5, 5, 
           6, 5, 8, 45, 92, 124, 116, 106, 93, 72, 50, 29, 15, 6, 5, 3, 
           2, NA, NA, 0),
  time =c(0, 0.25, 0.5, 0.75, 1, 1.5, 2, 3, 4, 6, 8, 12, 24, 48, 72, 
          144, 192, 240, 312, 312.25, 312.5, 312.75, 313, 313.5, 314, 315, 
          316, 318, 320, 324, 330, 336, 348, 360, 384, 432, 504),
  tau = 12
)
#> Error in stats::.lm.fit(x = cbind(1, data$time), y = data$log_conc): NA/NaN/Inf in 'x'

Created on 2024-07-17 with reprex v2.1.0