Closed ptityeti closed 5 years ago
Hi Wouter!
thanks for the bug report and sorry it took me so long (I just came back from yet another travel).
The thing is very simple and boils down to not doing enough consistency checks on the parameter values when computing episodes (now, we spit a much more informative error message).
More precisely, you don't define any medication class column but CMA_per_episode()
by default has medication.change.means.new.treatment.episode = TRUE
which forces the use of medication class and which, thus, resulted in an ugly crash: now this case is checked and explicitly marked as an error which can be corrected either by providing a medication class name or by setting medication.change.means.new.treatment.episode
to FALSE
...
These changes will be in the devel
branch soon
Best,
Dan
Open interactive shiny plot using following code.
This works as expected.
When now selecting "per episode" in the menu "Select CMA type", errors appear:
AdhereR version 0.3.1 R version 3.5.1