vcov.trim: Extract variance-covariance matrix from TRIM output

Description Usage Arguments Value See Also Examples

View source: R/trim_post.R

Description

Extract variance-covariance matrix from TRIM output

Usage

1
2
## S3 method for class 'trim'
vcov(object, which = c("imputed", "fitted"), ...)

Arguments

object

TRIM output structure (i.e., output of a call to trim)

which

[character] Selector to distinguish between variance-covariance based on the imputed counts (default), or the fitted counts.

...

Arguments to pass to or from other methods (currently unused; included for consistency with vcov).

Value

a J x J matrix, where J is the number of years (or time-points).

See Also

Other analyses: coef.trim(), confint.trim(), gof(), index(), now_what(), overall(), overdispersion(), plot.trim.index(), plot.trim.overall(), results(), serial_correlation(), summary.trim(), totals(), trim(), wald()

Examples

1
2
3
4
5
data(skylark)
z <- trim(count ~ site + time, data=skylark, model=3);
totals(z)
vcv1 <- vcov(z)          # Use imputed data
vcv2 <- vcov(z,"fitted") # Use fitted data

Example output

Welcome to rtrim 2.0.6 Type ?`rtrim-package` to get started.

Attaching package:rtrimThe following object is masked frompackage:stats:

    heatmap

  time imputed se_imp
1    1     511     38
2    2     362     31
3    3     429     26
4    4     423     25
5    5     469     27
6    6     522     27
7    7     562     32
8    8     606     36

rtrim documentation built on April 21, 2020, 5:06 p.m.