UnivariateRegress | R Documentation |
Will perform a logistic regression for each independent vatiable in the input table and output the results in a data frame
UnivariateRegress( table, depen_vars, indep_vars, mod_type = "glm", rand_effect = NULL )
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. |
out <- UnivariateRegress(table, depen_vars="Alive_Dch", indep_vars=c("Total.EEG.Time", "Supression", "Beta.Burst"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.