n2k_inla_nbinomial: Create a n2kInlaNbinomial object

Description Usage Arguments Details

Description

Create a n2kInlaNbinomial object

A new n2kInlaNbinomial model is created when data is a data.frame.

In case data a n2kInlaNbinomial object is, then only the model and status are updated. All other slots are unaffected.

Usage

1
2
3
4
5
6
7
n2k_inla_nbinomial(data, ..., model.fit)

## S4 method for signature 'data.frame,ANY'
n2k_inla_nbinomial(data, ..., model.fit)

## S4 method for signature 'n2kInlaNbinomial,inla'
n2k_inla_nbinomial(data, ..., model.fit)

Arguments

data

a data.frame with the data to analyse

...

other arguments. See below

model.fit

The fitted model

Details

scheme.id

a single integer holding the id of the scheme.

species.group.id

a single integer identifing the species group

location.group.id

a single integer identifing the location group

model.type

a single character identifying the type of model to fit to the data

formula

a single character holding the model formula

first.imported.year

Oldest year considered in the data

last.imported.year

Most recent year considered in the data

duration

The width of the moving window. Defaults to the last.imported.year - first.imported.year + 1

last.analysed.year

Most recent year in the window. Defaults to last.imported.year

analysis.date

A POSIXct date indicating the date that the dataset was imported

seed

a single integer used as a seed for all calculations. A random seed will be inserted when missing.

lin.comb

A model matrix to calculate linear combinations

replicate.name

A list with the names of replicates. Defaults to an empty list. Used in case of f(X, ..., replicate = Z)

. Should be a named list like e.g. list(X = c("a", "b", "c")).

imputation.size

The required number of imputations defaults to 0.


INBO-Natura2000/n2kanalysis documentation built on Oct. 5, 2018, 8 a.m.