Custom PKNCA_impute_method_start: does start need to be a vector? #349
-
Regarding the PKNCA_impute_method I just wanted to make sure if there is any potential case/reason on why these functions define Also I did not manage to know what does the variable name
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Good questions. I tend to use (In theory, And, |
Beta Was this translation helpful? Give feedback.
Good questions.
I tend to use
%in%
instead of==
reflexively to be safe forNA
values.time
should never beNA
at this point in the code, though. So, that's is also my habit more than being necessary for that reason here.(In theory,
start
could be a vector if you had a full washout and many times for starting single dose administration. For example, an animal study with a 2 hour half-life drug and dosing separated by 7 days could have start asc(0, 168)
. That said looking at the code, it wouldn't work if there were onetime
that matchedstart
and one that did not.)And,
ret
is the name that I typically give for the intended return value of any function. There's nothing more in its name. …