getMainEffects: 'getMainEffects' Wrapper for fitMainEffectModel with sapply...

View source: R/regain.R

getMainEffectsR 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, pheno

Description

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, pheno

Usage

getMainEffects(
  dats,
  indVarNames = NULL,
  depVarName = NULL,
  reg.fam = "binomial",
  nCovs = 0
)

Arguments

dats

data.frame with variables in columns and samples in rows.

indVarNames

vector of independent variable names to loop over.

depVarName

string name of the classLabel variable.

nCovs

numeric of included covariates.

regressionFamily

string glm regression family name.

Value

mainEffectValues vector of main effect values.


insilico/glmSTIR documentation built on July 7, 2023, 12:29 a.m.