coefplot (version 1.2.7)

extract.coef.glm: extract.coef.glm

Description

Extract Coefficient Information from glm Models

Usage

# S3 method for glm
extract.coef(model, ...)

Arguments

model

Model object to extract information from.

...

Further arguments

Value

A data.frame containing the coefficient, the standard error and the variable name.

Details

Gets the coefficient values and standard errors, and variable names from a glm model.

Examples

Run this code
# NOT RUN {
library(ggplot2)
data(diamonds)
library(coefplot)
mod2 <- glm(price > 10000 ~ carat + cut + x, data=diamonds, family=binomial(link="logit"))
extract.coef(mod2)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace