Calvagone / campsis

A generic PK/PD simulation platform based on rxode2 and mrgsolve engines.
https://calvagone.github.io/
GNU General Public License v3.0
8 stars 3 forks source link

Make it possible to define occasions in dataset #18

Closed luyckxn closed 3 years ago

luyckxn commented 3 years ago

So far, it is not possible to define occasions in the dataset other than via the 'tablefun' argument:

e.g. tablefun <- ~.x %>% dplyr::mutate(OCC=DOSENO) %>% dplyr::group_by(ID) %>% tidyr::fill(OCC, .direction="downup") %>% dplyr::ungroup()

Occasions/Visits could be implemented as follows: dataset <- dataset %>% add(Occasion(colname="OCC", values=c(1,2,3,4), dose_numbers=c(1,2,3,4)))

Dose numbers say at which doses occasions need to change. Values are the values to be exported into the dataset.