getcoeftable {relevance}R Documentation

Extract Componente of a Fit

Description

Retrieve the table of coefficients and standard errors, or the scale parameter, or the factors needed for standardizing coefficients from diverse model fitting results

Usage

getcoeftable(object)
getscalepar(object)
getcoeffactor(object)

Arguments

object

results of a model fitting function

Details

Object regrModelClasses contains the names of the classes for which the result should work. For other model classes, the function is not tested and may fail.

Value

For getcoeftable: Matrix containing at least the two columns containing the estimated coefficients (first column) and the standard errors (second column).
For getscalepar: scale parameter.
For getcoeffactor: vector of factors, with attributes scale, fitclass and family or dist according to object.

Author(s)

Werner A. Stahel

Examples

  rr <- lm(Fertility ~ . , data = swiss)
  getcoeftable(rr)
  getscalepar(rr)

  data(ovarian, package="survival")
  rs <- survival::survreg(survival::Surv(futime, fustat) ~ ecog.ps + rx,
                data = ovarian, dist = "weibull")
  getcoeftable(rs)
  getcoeffactor(rs)

[Package relevance version 1.0 Index]