Closed luyckxn closed 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.
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.