coeflist: List Coefficients by Model Component

Description Usage Arguments Value Author(s) Examples

View source: R/AllGeneric.R

Description

S3-generic function to use with models which contain several groups of coefficients in their coefficient vector. The coeflist methods are intended to list the coefficients by group. The default method simply splits the coefficient vector given the number of coefficients by group.

Usage

1
2
3
4
coeflist(x, ...)

## Default S3 method:
coeflist(x, npars, ...)

Arguments

x

a model with groups of coefficients or, for the default method, a vector of coefficients.

npars

a named vector specifying the number of coefficients per group.

...

potential further arguments (currently ignored).

Value

a list of coefficients

Author(s)

Sebastian Meyer

Examples

1
2
3
4
## the default method just 'split's the coefficient vector
coefs <- c(a = 1, b = 3, dispersion = 0.5)
npars <- c(regression = 2, variance = 1)
coeflist(coefs, npars)

surveillance documentation built on May 20, 2017, 5:22 a.m.

Search within the surveillance package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.