addCovFromFormla
adds some covariates to a formula;
covs should be a list of variable names
addCovToFormla(covs, formla)
formula
should be a list of variable names
which formula to add covariates to
formla <- y ~ x
addCovToFormla(list("w","z"), formla)
formla <- ~x
addCovToFormla("z", formla)
Run the code above in your browser using DataLab