knitr::opts_chunk$set(collapse = TRUE,
                        comment  = "#>")
  library(portalcasting)

  models_controls <- prefab_models_controls( )
  models_names    <- unlist(mapply(getElement, prefab_models_controls(), "metadata")["print_name", ])

  nmodels        <- length(models_names)
  nmodels_text   <- as.character(english::english(nmodels))

Models

We currently analyze and forecast rodent data at Portal using r nmodels_text models: r models_names [@PortalPredictions].

  template <- "### %s \n \n %s \n \n   \n"

  for (i in 1:nmodels) {
    model_i_controls <- models_controls[[i]]
    cat(sprintf(template, model_i_controls$metadata$print_name, model_i_controls$metadata$text))
  }

Ensemble

In addition to the base models, we include a starting-point ensemble. Prior to v0.9.0, the ensemble was based on AIC weights, but in the shift to separating the interpolated from non-interpolated data in model fitting, we had to transfer to an unweighted average ensemble model. The ensemble mean is calculated as the mean of all model means and the ensemble variance is estimated as the sum of the mean of all model variances and the variance of the estimated mean, calculated using the unbiased estimate of sample variances. Given that the current ensemble is unweighted and includes a number of very naive models, we do not currently consider it the best model for forecasting.

References



weecology/portalPredictionsModels documentation built on Jan. 31, 2024, 12:03 p.m.