A new n2kInla
model is created when data
is a data.frame
.
In case data
is an n2kInla
object, then only the model and
status are updated.
All other slots are unaffected.
n2k_inla(data, ..., model_fit)
# S4 method for data.frame,ANY
n2k_inla(
data,
status = "new",
result_datasource_id,
scheme_id,
family = "poisson",
formula,
species_group_id,
location_group_id,
model_type,
first_imported_year,
last_imported_year,
duration,
last_analysed_year,
analysis_date,
lin_comb = NULL,
minimum = "",
imputation_size,
parent = character(0),
seed,
replicate_name = list(),
control = list(),
parent_status = "converged",
parent_statusfingerprint,
extra,
...,
model_fit
)
# S4 method for n2kInla,inla
n2k_inla(data, status, raw_imputed = NULL, ..., model_fit)
a data.frame
with the data to analyse
other arguments. See below
The fitted model
A single character indicating the status of the model.
Defaults to "waiting"
.
A string identifying the data source.
A single integer holding the id of the scheme.
the family to use in the INLA model.
A single character identifying the comparison.
A string identifying the species group.
A string identifying the location group.
The type of the models.
Must start with "inla comparison:"
.
Oldest year considered in the data.
Most recent year considered in the data.
The width of the moving window.
Defaults to the last_imported_year - first_imported_year + 1
.
Most recent year in the window.
Defaults to last_imported_year
.
A POSIXct
date indicating the date that the dataset
was imported.
A model matrix to calculate linear combinations.
The name of the variable which holds the minimum counts. Only relevant in case of multiple imputation.
The required number of imputations defaults to 0.
The file fingerprint of the optional parent analysis.
A single integer used as a seed for all calculations. A random seed will be inserted when missing.
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"))
.
A named list passed to INLA::inla()
when fitting
the model.
The status of the parent analysis.
The status fingerprint of the parent analysis.
a data.frame
with extra observations not used in the model.
They will be added in subsequent analyses.
the optional rawImputed
object