Learn R Programming

mads (version 0.1.6)

fit.ddf.models: Refits the detection functions to the resampled data

Description

Fits all the models named in model.names to the associated data supplied in ddf.dat.working. If more than one model is supplied for any species the model with the minimum selection criteria will be selected.

Usage

fit.ddf.models(
  ddf.dat.working,
  model.names,
  ddf.models,
  criterion,
  bootstrap.ddf.statistics,
  rep.no,
  MAE.warnings
)

Arguments

ddf.dat.working

list of dataframes containing the data to which the models will be fitted

model.names

list of unique character vectors giving the names of the ddf objects for each species.

ddf.models

a list of ddf objects

criterion

character option specifying the model selection criteria - "AIC", "AICc" or "BIC".

bootstrap.ddf.statistics

array storing parameter estimates

rep.no

numeric value indicating iteration number

MAE.warnings

character vector of warning messages

Value

list of ddf objects