getMainEffects | R Documentation |
getMainEffects
Wrapper for fitMainEffectModel with sapply over independent variable names.
Does not include covariates, so if you have covariates use
indVarNames = colnames(dats)[1:(ncol(dats) - nCovs - 1)]
if the columns are organized as: independent vars, covars, phenogetMainEffects
Wrapper for fitMainEffectModel with sapply over independent variable names.
Does not include covariates, so if you have covariates use
indVarNames = colnames(dats)[1:(ncol(dats) - nCovs - 1)]
if the columns are organized as: independent vars, covars, pheno
getMainEffects(
dats,
indVarNames = NULL,
depVarName = NULL,
reg.fam = "binomial",
nCovs = 0
)
dats |
|
indVarNames |
vector of independent variable names to loop over. |
depVarName |
|
nCovs |
|
regressionFamily |
|
mainEffectValues vector
of main effect values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.