UnivariateRegress: Perform a univariate regression analysis

UnivariateRegressR Documentation

Perform a univariate regression analysis

Description

Will perform a logistic regression for each independent vatiable in the input table and output the results in a data frame

Usage

UnivariateRegress(
  table,
  depen_vars,
  indep_vars,
  mod_type = "glm",
  rand_effect = NULL
)

Arguments

table

the input data

depen_vars

the dependent variables

indep_vars

the independent variables

mod_type

Type of model to run. Must either be "glm" or "glmer"

rand_effect

If mod_type is "glmer", pass whichever variable you want as the random effect as a string. Defaults to NULL.

Examples

out <- UnivariateRegress(table, depen_vars="Alive_Dch", indep_vars=c("Total.EEG.Time", "Supression", "Beta.Burst"))

kwdoyle/kevtools documentation built on Jan. 4, 2023, 10:32 p.m.