Skip to content

Custom PKNCA_impute_method_start: does start need to be a vector? #349

Closed Answered by billdenney
Gero1999 asked this question in Q&A
Discussion options

You must be logged in to vote

Good questions.

I tend to use %in% instead of == reflexively to be safe for NA values. time should never be NA 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 as c(0, 168). That said looking at the code, it wouldn't work if there were one time that matched start 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. …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Gero1999
Comment options

Answer selected by Gero1999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants