Learn R Programming

BMisc (version 1.4.8)

drop_cov_from_formula: 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)

Value

formula

Arguments

covs

should be a list of variable names

formula

the formula to drop covariates from

Examples

Run this code
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