Learn R Programming

broom (version 0.3.4)

glm_tidiers: Tidying methods for a glm object

Description

Tidy a glm object. The tidy and augment methods are handled by lm_tidiers.

Usage

## S3 method for class 'glm':
glance(x, ...)

Arguments

x
glm object
...
extra arguments, not used

Value

  • tidy and augment return the same values as do tidy.lm and augment.lm.

    glance returns a one-row data.frame with the columns

  • null.deviancethe deviance of the null model
  • df.nullthe residual degrees of freedom for the null model
  • logLikthe data's log-likelihood under the model
  • AICthe Akaike Information Criterion
  • BICthe Bayesian Information Criterion
  • deviancedeviance
  • df.residualresidual degrees of freedom

See Also

tidy.lm and augment.lm. Also glm, which computes the values reported by the glance method.

Examples

Run this code
g <- glm(am ~ mpg, mtcars, family = "binomial")
glance(g)

Run the code above in your browser using DataLab