ngrid | R Documentation |
A function that gets the number of doses in grid. User can choose whether the placebo dose (if any) should be counted or not.
ngrid(object, ignore_placebo = TRUE, ...)
## S4 method for signature 'Data'
ngrid(object, ignore_placebo = TRUE, ...)
object |
( |
ignore_placebo |
( |
... |
further arguments passed to class-specific methods. |
integer
the number of doses in grid.
my_data <- Data(
x = c(10, 50, 90, 100, 0.001, 20, 30, 30),
y = c(0, 0, 0, 0, 0, 0, 1, 0),
ID = 1:8,
cohort = c(1L, 2L, 3L, 4L, 5L, 5L, 6L, 6L),
doseGrid = c(0.001, seq(from = 10, to = 100, by = 10)),
placebo = TRUE
)
ngrid(my_data)
ngrid(my_data, ignore_placebo = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.