Number of units conditional on treatment #67
Replies: 1 comment 2 replies
-
Thanks for the interesting challenge! Currently, I don't allow nesting based on other variables. I can see this being useful, so I will try to implement this (perhaps something like in #68). Regarding setting unit factors conditional on treatment -- originally, I reserved the helper functions |
Beta Was this translation helpful? Give feedback.
-
Many thanks for the package @emitanaka - I can see this being a really useful tool for clarifying the process of designing experiments. I'm wondering what is the colloquial way to handle the following situation. Individual subjects receive a two-level treatment factor. There's also a nested unit 'Cells' within the subjects - and subjects who get the first level of treatment will provide 2 nested Cells, but subjects who get the second level will provide 4 nested cells.
In the following code, I've attempted to nest a unit within a treatment so that I can use the 'RSV' value to determine the number of units, but attempting to serve the table gets a
Error in vapply(.x, .f, .mold, ..., USE.NAMES = FALSE) : values must be length 1, but FUN(X[[1]]) result is length 0
. Nesting a unit within a treatment feels like it is abusing the grammar somewhat, but I am not familiar enough to find the correct way of phrasing this, so any advice would be very gratefully appreciated.Beta Was this translation helpful? Give feedback.
All reactions