Open billdenney opened 3 years ago
The censoring geom should take care of left and right censoring values, which are described in in the document you helped create here:
https://github.com/nlmixrdevelopment/RxODE/blob/master/man/rmdhunks/RxODE-datasets.Rmd
The main way to explore this is in the context of nlmixr
datasets, or monolix datasets that implement CENS
and LIMIT
. The lower
and upper
show the censoring within the nlmixr datasets.
This wasn't reflected in the manual page so I updated it; Obviously limit
works, though it does give a warning of an unknown aesthetic.
Transferred geom_cens
and therefore this issue to RxODE
I just learned about
geom_cens()
, but I can't figure out how to use it. I tried a simple example below, but it didn't work the way that I expected.I thought that values <2 would somehow be censored and values >2 would not. But I got bars from 2 to infinity. Also, the help says that "lower represents the lower bound of the censoring (could be -Inf)" and "upper represents the upper bound of the censoring (cound be Inf)", but I got a warning that they were unknown aesthetics.
(And while in the doc, there is a typo with "cound" which should be "could".)
Created on 2021-01-12 by the reprex package (v0.3.0)