An issue was reported by email. The crux was that the following code was caused by a placebo subject with one PK measurement at 2 hr. As a guess, the placebo subject probably had no dosing record.
NCA_conc1 <- PKNCAconc(data = PK,
formula = Concentration ~ Nominal_time | Subject)
NCA_dose1 <- PKNCAdose(data = PK[PK$Nominal_time == 0 & PK$dose > 0,],
formula = dose ~ Nominal_time | Subject)
NCA_data1 <- PKNCAdata(NCA_conc1, NCA_dose1)
# Error in seq_len(length(time.dosing) - 1) :
# argument must be coercible to non-negative integer
An issue was reported by email. The crux was that the following code was caused by a placebo subject with one PK measurement at 2 hr. As a guess, the placebo subject probably had no dosing record.