Skip to content

Time since First Dose #1122

Answered by kylebaron
Ravua1992 asked this question in Q&A
Oct 26, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @Ravua1992 -

There isn't anything baked into mrgsolve to do time since first dose; but here's some code if you did want to derived it inside the model. This might be more easily done after you simulate but you can do it in the model too.

Kyle

library(mrgsolve)
#> 
#> Attaching package: 'mrgsolve'
#> The following object is masked from 'package:stats':
#> 
#>     filter
library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union

code <- '
$PKMODEL cmt = "CENT"

$PARAM CL = 1, V = 20

$PK
if(NEWIND <=1) double tofd …

Replies: 1 comment 1 reply

Comment options

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

Answer selected by Ravua1992
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