trim_workhorse: TRIM workhorse function

Description Usage Arguments Value

View source: R/trim_workhorse.R

Description

TRIM workhorse function

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
trim_workhorse(
  count,
  site,
  year,
  month,
  weights,
  covars,
  model,
  changepoints,
  overdisp,
  serialcor,
  autodelete,
  stepwise,
  covin = list(),
  constrain_overdisp = 1,
  conv_crit = 1e-05,
  max_iter = 200,
  debug = FALSE
)

Arguments

count

a numerical vector of count data.

site

a numerical vector time points for each count data point.

year

an numerical vector time points for each count data point.

month

vector of month data.

weights

a numerical vector of weights.

covars

an optional data frame with covariates

model

a model type selector

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.

covin

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

constrain_overdisp

control constraining overdispersion

conv_crit

convergence criterion.

max_iter

maximum number of iterations allowed.

max_beta

maximum value for beta parameters

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 April 21, 2020, 5:06 p.m.