totals: Extract time-totals from TRIM output

Description Usage Arguments Value Details See Also Examples

View source: R/trim_post.R

Description

Extract time-totals from TRIM output

Usage

1
totals(x, which = c("imputed", "fitted", "both"), obs = FALSE, level = NULL)

Arguments

x

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

which

select what totals to compute (see Details section).

obs

Flag to include total observations (or not).

level

the confidence level required. If NULL, no confidence inetrvals are calculated.

Value

A data.frame with subclass trim.totals (for pretty-printing). The columns are time, fitted and se_fit (for standard error), and/or imputed and se_imp, depending on the selection.

Details

The idea of TRIM is to impute those site-time combinations where no counts are available. Time-totals (i.e. summed over sites) can be obtained for two cases:

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(), trim(), vcov.trim(), wald()

Examples

1
2
3
4
5
data(skylark)
z <- trim(count ~ site + time, data=skylark, model=2, changepoints=c(3,5))
totals(z)

totals(z, "both") # mimics classic TRIM

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