extract.coef.lm: extract.coef.lm

View source: R/extractCoef.r

extract.coef.lmR Documentation

extract.coef.lm

Description

Extract Coefficient Information from lm Models

Usage

## S3 method for class 'lm'
extract.coef(model, ...)

Arguments

model

Model object to extract information from.

...

Further arguments

Details

Gets the coefficient values and standard errors, and variable names from an lm model.

Value

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

Author(s)

Jared P. Lander

Examples

## Not run: 
library(ggplot2)
data(diamonds)
library(coefplot)
mod1 <- lm(price ~ carat + cut + x, data=diamonds)
extract.coef(mod1)

## End(Not run)


coefplot documentation built on March 18, 2022, 7:58 p.m.