| summaryOR | R Documentation |
Odds ratio summary statistics
summaryOR(glm.fit, lateX = TRUE, graph = FALSE, digits = 3, ...)
glm.fit |
an object of class "glm.fit" calculated with a "binomial "link function. |
lateX |
if TRUE, return lateX xtable of the result table |
graph |
if TRUE, plot the coefficients of a model with broom and ggplot2 |
Provide Odds ratio (exponential of the glm.fit coefficients) and their confidence intervals (given by confint). Stars are "***" if p-value < 0.001, "**" if 0.001 < p-value <= 0.01, "*" if 0.01 < p-value <= 0.05, "." if 0.05 < p-value <=0.1
y <- rbinom(n = 50, size = 1, prob = .3)
x1 <- rnorm(50, 5,1)
x2 <- runif(50, 0,5) * (1 + 2*y)
x3 <- rnorm(50, 12,5)
Data <- data.frame(y,x1,x2,x3)
logist <- glm(y~., data=Data, family="binomial")
summary(logist)
summaryOR(glm.fit=logist,lateX=FALSE,graph=FALSE, digits=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.