lm_vec.Rd
This function accepts a main_effect
and a set of covariates (using the R formula notation) and performs
a linear regression including main_effect + covariates
.
lm_vec(main_effect = "", covariates = "", bstr_data)
Character string containing an independent variable whose effect you want to measure. It could be disease status, age, gender etc. This should strictly be a single variable. This can be either a categorical or a continuous variable.
Character string containing a set of other predictors (variables) in the model. If more than
one covariates are included, they should be separated by a +
operator similar to an R formula.
Object of type BstrData()
Slightly different from the standard R lm
function, lm_vec
currently does not directly accept an R formula.
This could be accomodated in the future versions.
Also currently, this function returns the p-values and the t-statistics for the main_effect
only. Returning the statistics for all variables could be accomodated in the future versions.