drop_cov_from_formula {BMisc} | R Documentation |
Drop a Covariate from a Formula
Description
drop_cov_from_formula
adds drops some covariates from a
formula; covs should be a list of variable names
Usage
drop_cov_from_formula(covs, formula)
Arguments
covs |
should be a list of variable names |
formula |
the formula to drop covariates from |
Value
formula
Examples
ff <- y ~ x + w + z
drop_cov_from_formula(list("w", "z"), ff)
drop_cov_from_formula("z", ff)
[Package BMisc version 1.4.8 Index]