as.madness: Coerce to a madness object.

Description Usage Arguments Details Value Author(s) Examples

View source: R/AllClass.r

Description

Convert model to a madness object.

Usage

1
2
3
4
as.madness(x, vtag=NULL, xtag=NULL)

## Default S3 method:
as.madness(x, vtag = NULL, xtag = NULL)

Arguments

x

an object which can be fed to coef, and possibly vcov

vtag

an optional name for the val variable.

xtag

an optional name for the X variable.

Details

Attempts to stuff the coefficients and variance-covariance matrix of a model into a madness object.

Value

A madness object.

Author(s)

Steven E. Pav [email protected]

Examples

1
2
3
xy <- data.frame(x=rnorm(100),y=runif(100),z=runif(100))
amod <- lm(z ~ x + y,xy)
amad <- as.madness(amod)

shabbychef/madness documentation built on Feb. 12, 2020, 3:12 a.m.