Drop Random Effects from a Formula
drop_randfx.Rd
This function allows you to remove random effects from a formula by specifying which terms to drop. It checks for the presence of vertical bars ('|') in the terms of the formula and drops the random effects accordingly. If all terms are random effects, the function updates the formula to have only an intercept.