Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

coef

Extract coefficients from a function


Description

coef will extract the coefficients attribute from a function. Functions created by applying link{makeFun} to a model produced by lm(), glm(), or nls() store the model coefficients there to enable this extraction.

Usage

## S3 method for class ''function''
coef(object, ...)

Arguments

object

a function

...

ignored

Examples

if (require(mosaicData)) {
  model <- lm( width ~ length, data = KidsFeet)
  f <- makeFun( model )
  coef(f)
}

mosaicCore

Common Utilities for Other MOSAIC-Family Packages

v0.9.0
GPL (>= 2)
Authors
Randall Pruim <rpruim@calvin.edu>, Daniel T. Kaplan <kaplan@macalester.edu>, Nicholas J. Horton <nhorton@amherst.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.