Open emitanaka opened 11 months ago
Looks really useful - perhaps an even more general nested_in(subject, ~ifelse(group=="group1",2,4))
where formulae without a lhs would be evaluated to provide the nested levels.
I agree with keeping it general like you say. Let me think about how this affects the underlying graph structure (and subsequently the suggested design_model()
). Part of the problem is that you can end up specifying a crossed structure but it won't be encoded as such in the system and hence causes issues downstream. So in that sense, we might need some constrain so it doesn't allow users to go too wild.
Something like: