addCovToFormla: Add a Covariate to a Formula

View source: R/BMisc.R

addCovToFormlaR Documentation

Add a Covariate to a Formula

Description

addCovFromFormla adds some covariates to a formula; covs should be a list of variable names

Usage

addCovToFormla(covs, formla)

Arguments

covs

should be a list of variable names

formla

which formula to add covariates to

Value

formula

Examples

formla <- y ~ x
addCovToFormla(list("w", "z"), formla)

formla <- ~x
addCovToFormla("z", formla)


bcallaway11/BMisc documentation built on Jan. 12, 2025, 9:11 a.m.