R/dropRedundantTerms.R
dropRedundantTerms.Rd
Detect co-linear fixed effects and drop the last one
dropRedundantTerms(formula, data, tol = 0.001)
original formula
data.frame
tolerance to test difference of correlation from 1 or -1
a formula, possibly with terms omitted.
# Valid formula dropRedundantTerms(~ group + extra, sleep) #> ~group + extra #> <environment: 0x338b86cd8>