Closed brianpenghe closed 2 years ago
The error implies that variables in your model are either co-linear or that the design matrix contains more columns than rows. You can inspect the design matrix with model.matrix(~dissection + chemistry + stage_group, data=design_df)
. An alternative issue could be that you have a perfect confounding between the Late
level of stage_group
(as indicated by the error message) and one of the other variables in your model.
I would strongly recommend that you check whether your design is valid before running any testing.
Indeed removing dissection changed the error messages. Thanks Mike.
I was following this tutorial There must be something I missed still?