powered by
drop_cov_from_formula adds drops some covariates from a formula; covs should be a list of variable names
drop_cov_from_formula
drop_cov_from_formula(covs, formula)
formula
should be a list of variable names
the formula to drop covariates from
ff <- y ~ x + w + z drop_cov_from_formula(list("w", "z"), ff) drop_cov_from_formula("z", ff)
Run the code above in your browser using DataLab