trim_estimate: TRIM estimation function

View source: R/trim_estimate.R

trim_estimateR Documentation

TRIM estimation function

Description

TRIM estimation function

Usage

trim_estimate(
  count,
  site,
  year,
  month,
  weights,
  covars,
  model,
  changepoints,
  overdisp,
  serialcor,
  autodelete,
  stepwise,
  covin,
  verbose = FALSE,
  ...
)

Arguments

count

a numerical vector of count data.

site

an integer/numerical/character/factor vector of site identifiers for each count data point

year

an integer/numerical vector time points for each count data point.

month

an optional integer/character/factor vector of months for each count data point.

weights

an optional numerical vector of weights.

covars

an optional data frame withcovariates

model

a model type selector (1, 2 or 3)

changepoints

a numerical vector change points (only for Model 2)

overdisp

a flag indicating of overdispersion has to be taken into account.

serialcor

a flag indication of autocorrelation has to be taken into account.

autodelete

a flag indicating auto-deletion of changepoints with too little observations.

stepwise

a flag indicating stepwise refinement of changepoints is to be used.

covin

a list of variance-covariance matrices; one per pseudo-site.

verbose

flag to enable addtional output during a single run.

Value

a list of class trim, that contains all output, statistiscs, etc. Usually this information is retrieved by a set of postprocessing functions


rtrim documentation built on June 22, 2024, 10:39 a.m.