TRIM workhorse function
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
)
a numerical vector of count data.
a numerical vector time points for each count data point.
an numerical vector time points for each count data point.
vector of month data.
a numerical vector of weights.
an optional data frame with covariates
a model type selector
a numerical vector change points (only for Model 2)
a flag indicating of overdispersion has to be taken into account.
a flag indication of autocorrelation has to be taken into account.
a list of variance-covariance matrices; one per pseudo-site.
control constraining overdispersion
convergence criterion.
maximum number of iterations allowed.
maximum value for beta parameters
a list of class trim
, that contains all output, statistiscs, etc.
Usually this information is retrieved by a set of postprocessing functions