Closed wlandau closed 5 months ago
Currently we check a bunch of attributes to detect if there is a subgroup in the model:
https://github.com/openpharma/brms.mmrm/blob/a9581e71e9ed86a25003160082ae234ff8f1ea8b/R/brm_formula.R#L491-L501
These specific attributes may vary from case to case in #96. We should define one unifying property to detect this.
On second thought, it would probably be cleaner to make brm_formula_has_subgroup() an S3 generic.
brm_formula_has_subgroup()
Currently we check a bunch of attributes to detect if there is a subgroup in the model:
https://github.com/openpharma/brms.mmrm/blob/a9581e71e9ed86a25003160082ae234ff8f1ea8b/R/brm_formula.R#L491-L501
These specific attributes may vary from case to case in #96. We should define one unifying property to detect this.