rep_glm: A repeated logistic regression function

View source: R/rep_glm.R

rep_glmR Documentation

A repeated logistic regression function

Description

For bivariate analyses. The confint() function is rather slow, causing the whole function to hang when including many predictors and calculating the ORs with CI.

Usage

rep_glm(meas, vars = NULL, string, ci = FALSE, data, fixed.var = FALSE)

Arguments

meas

Effect meassure. Input as c() of columnnames, use dput().

vars

variables in model. Input as c() of columnnames, use dput().

string

variables to test. Input as c() of columnnames, use dput().

ci

flag to get results as OR with 95 percent confidence interval.

data

dataframe to pull variables from.

fixed.var

flag to set "vars" as fixed in the model. When FALSE, then true bivariate logistic regression is performed.


agdamsbo/daDoctoR documentation built on Aug. 30, 2022, 4:29 p.m.