{
  "_id": "6a436da64ba05a737d8b8998",
  "Package": "hhh4addon",
  "Type": "Package",
  "Title": "Extensions to endemic-epidemic timeseries modeling from package\nsurveillance",
  "Version": "0.0.0.0.9014",
  "Author": "Johannes Bracher [aut, cre], Maria Bekker-Nielsen Dunbar [ctb],\nthe authors and contributors of the surveillance package,\nhttps://cran.r-project.org/package=surveillance [ctb]\n(substantial parts of the package consist of modified code from\nthe surveillance package), R Core Team [ctb] (a few code\nsegments are modified versions of code from base R)",
  "Maintainer": "Johannes Bracher <johannes.bracher@kit.edu>",
  "Description": "Extending surveillance::hhh4 to allow for distributed\nlags, solutions for longterm prediction and (periodically)\nstationary moments.",
  "License": "GPL-2",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.1",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/jbracher/hhh4addon",
  "Repository": "https://ee-lib.r-universe.dev",
  "Date/Publication": "2024-08-26 13:13:51 UTC",
  "RemoteUrl": "https://github.com/jbracher/hhh4addon",
  "RemoteRef": "HEAD",
  "RemoteSha": "bb2bb243b51bd5ffff389f39663b9ce4c6c85d73",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-30 07:14:04 UTC",
    "User": "root"
  },
  "MD5sum": "d7f3e5173d6a337c34452ad8d09460a1",
  "_user": "ee-lib",
  "_type": "src",
  "_file": "hhh4addon_0.0.0.0.9014.tar.gz",
  "_fileid": "2b98e19d399da8d23f3409a278d46ae0dcd9c89814206fb5123f634f2f5958a3",
  "_filesize": 1567250,
  "_sha256": "2b98e19d399da8d23f3409a278d46ae0dcd9c89814206fb5123f634f2f5958a3",
  "_created": "2026-06-30T07:14:04.000Z",
  "_published": "2026-06-30T07:17:58.296Z",
  "_distro": "resolute",
  "_jobs": [
    {
      "job": 84232586422,
      "time": 188,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7973498923"
    },
    {
      "job": 84232586439,
      "time": 133,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "7973481994"
    },
    {
      "job": 84232586455,
      "time": 148,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7973486218"
    },
    {
      "job": 84232586444,
      "time": 119,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "7973476985"
    },
    {
      "job": 84231932797,
      "time": 242,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "7973436618"
    },
    {
      "job": 84232586458,
      "time": 101,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7973471681"
    },
    {
      "job": 84232586425,
      "time": 91,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7973467948"
    },
    {
      "job": 84232586440,
      "time": 94,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7973468749"
    },
    {
      "job": 84232586423,
      "time": 117,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "7973476301"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ee-lib/actions/runs/28426845358",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/jbracher/hhh4addon",
  "_commit": {
    "id": "bb2bb243b51bd5ffff389f39663b9ce4c6c85d73",
    "author": "jbracher <jbracher@outlook.de>",
    "committer": "jbracher <jbracher@outlook.de>",
    "message": "Updating documentation.\n",
    "time": 1724678031
  },
  "_maintainer": {
    "name": "Johannes Bracher",
    "email": "johannes.bracher@kit.edu",
    "login": "jbracher",
    "description": "Postdoctoral researcher, Karlsruhe Institute of Technology / Heidelberg Institute for Theoretical Studies",
    "uuid": 14276689
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.2.0",
      "role": "Depends"
    },
    {
      "package": "methods",
      "role": "Depends"
    },
    {
      "package": "grDevices",
      "role": "Depends"
    },
    {
      "package": "graphics",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Depends"
    },
    {
      "package": "utils",
      "role": "Depends"
    },
    {
      "package": "sp",
      "version": ">= 1.0-15",
      "role": "Depends"
    },
    {
      "package": "surveillance",
      "role": "Depends"
    },
    {
      "package": "fanplot",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "nlme",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "jbracher",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 7,
  "_contributors": [
    {
      "user": "jbracher",
      "count": 197,
      "uuid": 14276689
    },
    {
      "user": "mariabnd",
      "count": 8,
      "uuid": 33788128
    },
    {
      "user": "bastistician",
      "count": 1,
      "uuid": 4366501
    },
    {
      "user": "t-pollington",
      "count": 1,
      "uuid": 20032526
    }
  ],
  "_userbio": {
    "uuid": 184227302,
    "type": "organization",
    "name": "EE-lib",
    "followers": 0,
    "description": "Collection of R packages implementing endemic-epidemic models"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hhh4addon"
  },
  "_devurl": "https://github.com/jbracher/hhh4addon",
  "_searchresults": 54,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hhh4addon.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "aggregate_moments",
    "ar2_lag",
    "decompose.hhh4",
    "distr_lag",
    "ds_score_hhh4",
    "fanplot_prediction",
    "fanplot_stationary",
    "fit_par_lag",
    "geometric_lag",
    "hhh4_lag",
    "linear_lag",
    "log_normal_lag",
    "oneStepAhead_hhh4lag",
    "plot_moments_by_unit",
    "plotHHH4lag_fitted",
    "plotHHH4lag_maps",
    "poisson_lag",
    "predictive_moments",
    "profile_par_lag",
    "psi2size.hhh4lag",
    "stationary_moments",
    "unrestricted_lag"
  ],
  "_datasets": [
    {
      "name": "campyloBL",
      "title": "",
      "object": "campyloBL",
      "class": [
        "sts"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "dengueSJ",
      "title": "Data set on dengue in San Juan, Puerto Rico",
      "object": "dengueSJ",
      "class": [
        "sts"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "noroBE",
      "title": "",
      "object": "noroBE",
      "class": [
        "sts"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "noroBL",
      "title": "Data set on norovirus gastroenteritis in Bremen and Lower Saxony",
      "object": "noroBL",
      "class": [
        "sts"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "rotaBE",
      "title": "",
      "object": "rotaBE",
      "class": [
        "sts"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "rotaBL",
      "title": "",
      "object": "rotaBL",
      "class": [
        "sts"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "aggregate_moments",
      "title": "Aggregation of stationary or predictive moments",
      "topics": [
        "aggregate_moments"
      ]
    },
    {
      "page": "ar2_lag",
      "title": "Function to obtain AR2 weights This function generates AR2 weights which are subsequently used inside of 'get_weighted_lags'. To be passed to 'hhh4_lag' or 'profile_par_lag' as the 'control$funct_lag' argument.",
      "topics": [
        "ar2_lag"
      ]
    },
    {
      "page": "confint.oneStepAhead",
      "title": "confidence intervals for one-step-ahead predictions",
      "topics": [
        "confint.oneStepAhead"
      ]
    },
    {
      "page": "decompose.hhh4",
      "title": "A wrapper around 'decompose.hhh4lag' and 'surveillance::decompose.hhh4'",
      "topics": [
        "decompose.hhh4"
      ]
    },
    {
      "page": "decompose.hhh4lag",
      "title": "A modified version of 'decompose.hhh4'",
      "topics": [
        "decompose.hhh4lag"
      ]
    },
    {
      "page": "dengueSJ",
      "title": "Data set on dengue in San Juan, Puerto Rico",
      "topics": [
        "dengueSJ"
      ]
    },
    {
      "page": "distr_lag",
      "title": "Display the function and parameters used for distributed lags",
      "topics": [
        "distr_lag"
      ]
    },
    {
      "page": "ds_score_hhh4",
      "title": "Calculate Dawid-Sebastiani score",
      "topics": [
        "ds_score_hhh4"
      ]
    },
    {
      "page": "fanplot_prediction",
      "title": "Display prediction as a fan plot",
      "topics": [
        "fanplot_prediction"
      ]
    },
    {
      "page": "fanplot_stationary",
      "title": "Display stationary distribution as a fanplot",
      "topics": [
        "fanplot_stationary"
      ]
    },
    {
      "page": "fit_par_lag",
      "title": "Estimating the lag decay parameter of an 'hhh4_lag' model using profile likelihood",
      "topics": [
        "fit_par_lag"
      ]
    },
    {
      "page": "fixef.hhh4lag",
      "title": "A modified version of 'fixef.hhh4'",
      "topics": [
        "fixef.hhh4lag"
      ]
    },
    {
      "page": "geometric_lag",
      "title": "Function to obtain geometric weights This function generates geometric weights which are subsequently used inside of 'get_weighted_lags'. To be passed to 'hhh4_lag' or 'profile_par_lag' as the 'control$funct_lag' argument.",
      "topics": [
        "geometric_lag"
      ]
    },
    {
      "page": "get_diags_of_array",
      "title": "Get diagnoal elements of all slices of an array",
      "topics": [
        "get_diags_of_array"
      ]
    },
    {
      "page": "get_weighted_lags",
      "title": "Transform matrix of first-order lagged observations to matrix of weighted sums of past observation",
      "topics": [
        "get_weighted_lags"
      ]
    },
    {
      "page": "hhh4_lag",
      "title": "Fitting hhh4 models with distributed lags",
      "topics": [
        "hhh4_lag"
      ]
    },
    {
      "page": "interpolate_qnbinom",
      "title": "Interpolate between quantiles to avoid edgy display",
      "topics": [
        "interpolate_qnbinom"
      ]
    },
    {
      "page": "is_complex_neighbourhood",
      "title": "Determine whether an hhh4 object was fitted using one of the more complex techniques for handling neighbourhoods",
      "topics": [
        "is_complex_neighbourhood"
      ]
    },
    {
      "page": "is_fitted_par_lag",
      "title": "Check if the par_lag parameter was fitted",
      "topics": [
        "is_fitted_par_lag"
      ]
    },
    {
      "page": "lambda_tilde",
      "title": "Extracting Lambda_Tilde from an hhh4 object with complex neighbourhood structure",
      "topics": [
        "lambda_tilde"
      ]
    },
    {
      "page": "lambda_tilde_complex_neighbourhood",
      "title": "Extracting Lambda_Tilde from an hhh4 object with complex neighbourhood structure",
      "topics": [
        "lambda_tilde_complex_neighbourhood"
      ]
    },
    {
      "page": "linear_lag",
      "title": "Function to obtain linearly decaying weights",
      "topics": [
        "linear_lag"
      ]
    },
    {
      "page": "log_normal_lag",
      "title": "#' This function generates (shifted) discrete gamma weights which are subsequently used inside of 'get_weighted_lags'. To be passed #' to 'hhh4_lag' or 'profile_par_lag' as the 'control$funct_lag' argument. #' @param par_lag a parameter vector of length 2 to steer the lag structure, here log(shape) and log(rate), #' where shape and rate are the parameters of the discrete gamma distribution as implemented in the 'extraDistr' package. #' @param min_lag smallest lag to include; the support of the Poisson form starts only at 'min_lag'. Defaults to 1. #' @param max_lag highest lag to include; higher lags are cut off and he remaining weights standardized. Defaults to 5. #' @author Maria Dunbar, Johannes Bracher #' @export This function generates discretized log-normal weights which are subsequently used inside of 'get_weighted_lags'. To be passed to 'hhh4_lag' or 'profile_par_lag' as the 'control$funct_lag' argument.",
      "topics": [
        "log_normal_lag"
      ]
    },
    {
      "page": "logLik.hhh4lag",
      "title": "A modified version of 'logLik.hhh4'",
      "topics": [
        "logLik.hhh4lag"
      ]
    },
    {
      "page": "matrix_is_cyclic",
      "title": "Check whether the rows of a matrix show a cyclic pattern",
      "topics": [
        "matrix_is_cyclic"
      ]
    },
    {
      "page": "neOffsetArray.hhh4lag",
      "title": "A modified version of 'neOffsetArray'",
      "topics": [
        "neOffsetArray.hhh4lag"
      ]
    },
    {
      "page": "noroBL",
      "title": "Data set on norovirus gastroenteritis in Bremen and Lower Saxony",
      "topics": [
        "noroBL"
      ]
    },
    {
      "page": "numeric_fisher_hhh4lag",
      "title": "Numerical evaluation of the covariance matrix including the additional parameter 'par_lg'",
      "topics": [
        "numeric_fisher_hhh4lag"
      ]
    },
    {
      "page": "oneStepAhead_hhh4lag",
      "title": "Predictive Model Assessment for hhh4_lag Models",
      "topics": [
        "oneStepAhead_hhh4lag"
      ]
    },
    {
      "page": "plot_moments_by_unit",
      "title": "Plot predictive or stationary moments by unit",
      "topics": [
        "plot_moments_by_unit"
      ]
    },
    {
      "page": "plot.oneStepAhead",
      "title": "simple plot of one-step-ahead forecasts",
      "topics": [
        "plot.oneStepAhead"
      ]
    },
    {
      "page": "poisson_lag",
      "title": "Function to obtain Poisson weights This function generates Poisson weights which are subsequently used inside of 'get_weighted_lags'. To be passed to 'hhh4_lag' or 'profile_par_lag' as the 'control$funct_lag' argument.",
      "topics": [
        "poisson_lag"
      ]
    },
    {
      "page": "predictive_moments",
      "title": "Analytical computation of predictive moments for an 'hhh4' model",
      "topics": [
        "predictive_moments"
      ]
    },
    {
      "page": "print.hhh4lag",
      "title": "A modified version of 'surveillance::print.hhh4'",
      "topics": [
        "print.hhh4lag"
      ]
    },
    {
      "page": "print.summary.hhh4lag",
      "title": "A modified version of 'print.summary.hhh4'",
      "topics": [
        "print.summary.hhh4lag"
      ]
    },
    {
      "page": "profile_par_lag",
      "title": "Estimating the lag decay parameter of an 'hhh4_lag' model using profile likelihood",
      "topics": [
        "profile_par_lag"
      ]
    },
    {
      "page": "psi2size.hhh4lag",
      "title": "A modified version of 'psi2size.hhh4'",
      "topics": [
        "psi2size.hhh4lag"
      ]
    },
    {
      "page": "quantile.oneStepAhead",
      "title": "quantiles of the one-step-ahead forecasts",
      "topics": [
        "quantile.oneStepAhead"
      ]
    },
    {
      "page": "ranef.hhh4lag",
      "title": "A modified version of 'ranef.hhh4'",
      "topics": [
        "ranef.hhh4lag"
      ]
    },
    {
      "page": "residuals.hhh4lag",
      "title": "A modified version of 'residuals.hhh4'",
      "topics": [
        "residuals.hhh4lag"
      ]
    },
    {
      "page": "simulate.hhh4lag",
      "title": "Simulate \"hhh4_lag\" Count Time Series",
      "topics": [
        "simulate.hhh4lag"
      ]
    },
    {
      "page": "stationary_moments",
      "title": "Analytic calculation of periodically stationary moments implied by a 'hhh4'-model",
      "topics": [
        "stationary_moments"
      ]
    },
    {
      "page": "summary.hhh4lag",
      "title": "A modified version of 'surveillance::summary.hhh4'",
      "topics": [
        "summary.hhh4lag"
      ]
    },
    {
      "page": "terms.hhh4lag",
      "title": "A modified version of 'terms.hhh4'",
      "topics": [
        "terms.hhh4lag"
      ]
    },
    {
      "page": "unrestricted_lag",
      "title": "Function to obtain unrestricted lags",
      "topics": [
        "unrestricted_lag"
      ]
    },
    {
      "page": "update.hhh4lag",
      "title": "A modified version of 'update.hhh4'",
      "topics": [
        "update.hhh4lag"
      ]
    }
  ],
  "_readme": "https://github.com/jbracher/hhh4addon/raw/HEAD/README.md",
  "_rundeps": [
    "deldir",
    "fanplot",
    "lattice",
    "MASS",
    "Matrix",
    "nlme",
    "numDeriv",
    "polyclip",
    "polyCub",
    "sp",
    "spatstat.data",
    "spatstat.geom",
    "spatstat.univar",
    "spatstat.utils",
    "surveillance",
    "xtable"
  ],
  "_vignettes": [
    {
      "source": "hhh4addon.Rmd",
      "filename": "hhh4addon.html",
      "title": "hhh4addon: extending the functionality of surveillance:hhh4",
      "author": "Johannes Bracher (johannes.bracher@uzh.ch), University of Zurich",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Purpose of the R package hhh4addon",
        "The endemic-epidemic model class and its extension to higher-order lags",
        "Computing predictive and marginal moments",
        "References"
      ],
      "created": "2017-09-13 16:03:47",
      "modified": "2020-04-19 15:50:04",
      "commits": 12
    }
  ],
  "_score": 4.753583058892906,
  "_indexed": false,
  "_nocasepkg": "hhh4addon",
  "_universes": [
    "ee-lib"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.0.0.9014",
      "date": "2026-06-30T07:17:05.000Z",
      "distro": "resolute",
      "commit": "bb2bb243b51bd5ffff389f39663b9ce4c6c85d73",
      "fileid": "1383ae7edd86c284a464b8f1e32b8fb10037b7ec1bfcae0d250309e5d4c2590e",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/28426845358"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.0.0.9014",
      "date": "2026-06-30T07:16:13.000Z",
      "distro": "resolute",
      "commit": "bb2bb243b51bd5ffff389f39663b9ce4c6c85d73",
      "fileid": "e764e4a68f1d2e8f6b4e76b74886a541fd1865f95aae21847084ddd23234dc4f",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/28426845358"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.0.9014",
      "date": "2026-06-30T07:16:20.000Z",
      "commit": "bb2bb243b51bd5ffff389f39663b9ce4c6c85d73",
      "fileid": "86967edb041510865692344d67cf57a133f855948e68b0c6f38d2823bc034a37",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/28426845358"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.0.0.9014",
      "date": "2026-06-30T07:16:03.000Z",
      "commit": "bb2bb243b51bd5ffff389f39663b9ce4c6c85d73",
      "fileid": "bd96f9d20459de8b70fce5861ddaf4ce35941a3a77ac9e7885721c72bfd123fe",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/28426845358"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.0.9014",
      "date": "2026-06-30T07:16:10.000Z",
      "commit": "bb2bb243b51bd5ffff389f39663b9ce4c6c85d73",
      "fileid": "8f8f74b9b601dac402fdeeed778fe1370e3c637701efa216a615205ed789265e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/28426845358"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.0.9014",
      "date": "2026-06-30T07:15:20.000Z",
      "commit": "bb2bb243b51bd5ffff389f39663b9ce4c6c85d73",
      "fileid": "06503ac3c9f39e45261e7a0997f0b5c340d5d8559113af76e3b0ebf207950ff1",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/28426845358"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.0.9014",
      "date": "2026-06-30T07:15:23.000Z",
      "commit": "bb2bb243b51bd5ffff389f39663b9ce4c6c85d73",
      "fileid": "f7e9aa85ccdacb7c5ea0140c9e007cb239fde9a31698d2bfc633730a2f990086",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/28426845358"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.0.0.9014",
      "date": "2026-06-30T07:15:36.000Z",
      "commit": "bb2bb243b51bd5ffff389f39663b9ce4c6c85d73",
      "fileid": "4eca6b5a5eb7f70fa2a9e90e5c5c92beeb6fdfb830b416fd5ee85361c5adce15",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/28426845358"
    }
  ]
}