glm_ORs: Generate Odds Ratios CI Pval table from GLM

View source: R/glm_ORs.R

glm_ORsR Documentation

Generate Odds Ratios CI Pval table from GLM

Description

Generate Odds Ratios CI Pval table from GLM

Usage

glm_ORs(fit)

Arguments

fit

model fit by brm function

Value

Tibble with 5 columns: Name (char), OR, 2.5

Examples

x = runif(100,0,10)
y = sample(c(0,1), size = 100, replace = T)
z = runif(100,0,10)
df = tibble(
x = x,
y = y,
z = z
)
glmfit = glm(y ~ x + z, data = df, family = bernoulli(link = "logit"))
glm_ORs(glmfit)

Ajfrick/ajfhelpR documentation built on June 30, 2023, 12:56 a.m.