{
  "_id": "6b111f3e2975f68afc5d3bc8",
  "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": "2026-07-24 14:05:38 UTC",
  "RemoteUrl": "https://github.com/jbracher/hhh4addon",
  "RemoteRef": "HEAD",
  "RemoteSha": "e247993c6f7d3becf7f173f99a09e0307e215da2",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-12-03 07:46:37 UTC",
    "User": "root"
  },
  "_user": "ee-lib",
  "_type": "src",
  "_file": "hhh4addon_0.0.0.0.9014.tar.gz",
  "_fileid": "https://r2.ropensci.org/fbb7bd1a55531b01e2a67b3908e72274e60cd05e5d61b79f86e6c23cf4900671",
  "_filesize": 1566375,
  "_sha256": "fbb7bd1a55531b01e2a67b3908e72274e60cd05e5d61b79f86e6c23cf4900671",
  "_expires": "2027-03-13T07:50:20.000Z",
  "_created": "2026-12-03T07:46:37.000Z",
  "_published": "2026-12-03T07:50:22.376Z",
  "_upstream": "https://github.com/jbracher/hhh4addon",
  "_status": "success",
  "_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
  },
  "_jobs": [
    {
      "job": 144095461361,
      "time": 127,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "15696128319"
    },
    {
      "job": 144095461274,
      "time": 174,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "WARNING",
      "artifact": "15697348407"
    },
    {
      "job": 144095461369,
      "time": 132,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "15695714173"
    },
    {
      "job": 144095461323,
      "time": 132,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "WARNING",
      "artifact": "15697087440"
    },
    {
      "job": 144093631552,
      "time": 232,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15697615358"
    },
    {
      "job": 144095461277,
      "time": 88,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "15695729050"
    },
    {
      "job": 144095461289,
      "time": 81,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "15696798551"
    },
    {
      "job": 144095461561,
      "time": 82,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "15697428793"
    },
    {
      "job": 144095461383,
      "time": 96,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "WARNING",
      "artifact": "15697232371"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ee-lib/actions/runs/47060194769",
  "_commit": {
    "id": "e247993c6f7d3becf7f173f99a09e0307e215da2",
    "author": "Johannes Bracher <jbracher@outlook.de>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #15 from Soreic/master\n\nfix empty matrix `se_par_lag` for parameterized lag fits (#14)",
    "time": 1784901938
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": [
    {
      "week": "2026-30",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 7,
  "_contributors": [
    {
      "user": "jbracher",
      "count": 198,
      "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.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hhh4addon.html",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_cranurl": false,
  "_authors": [
    {
      "name": "Johannes Bracher",
      "email": "johannes.bracher@kit.edu",
      "role": [
        "cre"
      ]
    }
  ],
  "_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"
  ],
  "_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-12-03T07:48:41.000Z",
      "distro": "resolute",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/249e708c0ce4f8b6ad0e94c165489f5f9133ffaaa3bae9595066495e7ec04c92",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/47060194769"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.0.0.0.9014",
      "date": "2026-12-03T07:49:26.000Z",
      "distro": "resolute",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/c7dc63645b15966dffa3b386608e819b63dff21fbabfe328669330c4e63e5bdb",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/47060194769"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.0.9014",
      "date": "2026-12-03T07:48:41.000Z",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/6a3c950bbc2f5b5305ce33a205f717d0d0d9c54f6b2e437bc6f16cb537752781",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/47060194769"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.0.0.0.9014",
      "date": "2026-12-03T07:48:45.000Z",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/dbb63243250f7c911a8e452f9a5be90debaac1326b7fe03d2fb8ff896b0bc26a",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/47060194769"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.0.9014",
      "date": "2026-12-03T07:48:29.000Z",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/817cc8e3d68596473b42577fcc665375e76180ad576a7f636c5b066dca557c06",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/47060194769"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.0.9014",
      "date": "2026-12-03T07:47:44.000Z",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/9bc7cf56005098d19c25bb504b102eb1f4e9649ef3285207ac1b09acd02c4531",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/47060194769"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.0.9014",
      "date": "2026-12-03T07:47:50.000Z",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/0c8eaa5b43b22cb5f9ce507458ae18f729cfaa6ff7a0adefd1c3266036077877",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/47060194769"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.0.0.0.9014",
      "date": "2026-12-03T07:48:01.000Z",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/321c048c744af0af10f2e0eea0ac2d23cb82b81ec7cdbe8ef74f28a747c51b67",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/47060194769"
    }
  ]
}