When the AlgDesign package is loaded, its model.matrix function interferes with the model.matrix from the stats package used in the ancombc2 function, making it unable to recognize data formats similar to data.frame. It is fixed by using stats::model.matrix to avoid wrong call.
When the AlgDesign package is loaded, its model.matrix function interferes with the model.matrix from the stats package used in the ancombc2 function, making it unable to recognize data formats similar to data.frame. It is fixed by using stats::model.matrix to avoid wrong call.