{
  "_id": "6ac781f4de46216d5edd12a6",
  "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-10-08 11:05:54 UTC",
    "User": "root"
  },
  "_user": "ee-lib",
  "_type": "src",
  "_file": "hhh4addon_0.0.0.0.9014.tar.gz",
  "_fileid": "https://r2.ropensci.org/bd845611c5b7d893d353683475385cdb9192f3c1de1af551a560e2fd9c015fc5",
  "_filesize": 1566355,
  "_sha256": "bd845611c5b7d893d353683475385cdb9192f3c1de1af551a560e2fd9c015fc5",
  "_expires": "2027-01-16T11:43:46.000Z",
  "_created": "2026-10-08T11:05:54.000Z",
  "_published": "2026-10-08T11:43:48.696Z",
  "_buildurl": "https://github.com/r-universe/ee-lib/actions/runs/37767433438",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113279833881,
      "time": 128,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "11546910899"
    },
    {
      "job": 113279833904,
      "time": 113,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "11546661074"
    },
    {
      "job": 113279833968,
      "time": 127,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "11548207544"
    },
    {
      "job": 113279833955,
      "time": 116,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "11548112601"
    },
    {
      "job": 113278522031,
      "time": 210,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11546650494"
    },
    {
      "job": 113279833872,
      "time": 98,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11547120773"
    },
    {
      "job": 113279833926,
      "time": 97,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "11547215612"
    },
    {
      "job": 113279833935,
      "time": 96,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "11546705812"
    },
    {
      "job": 113279833999,
      "time": 88,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "11547195578"
    }
  ],
  "_upstream": "https://github.com/jbracher/hhh4addon",
  "_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
  },
  "_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
  },
  "_distro": "resolute",
  "_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.1",
  "_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,
  "_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-10-08T11:08:10.000Z",
      "distro": "resolute",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/5a832a4fbe9088cdca1c8e8035057156d0d0226e26f097ed5f92b1bd59a25c49",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/37767433438"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.0.0.9014",
      "date": "2026-10-08T11:08:26.000Z",
      "distro": "resolute",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/7285fdd3aefd375081aaf4ab40bd9f70915f2cb1feaeb3a88b363af7286157e3",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/37767433438"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.0.9014",
      "date": "2026-10-08T11:42:58.000Z",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/33add9a98c1d742d69ab49765338fa7dc4e270751beb7ba4cb5a3794d275c121",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/37767433438"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.0.0.9014",
      "date": "2026-10-08T11:42:47.000Z",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/74fb04ec819c42e6d8d93778d73bffbc1e83ed8d3e51a34de6b5b354a79b3381",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/37767433438"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.0.9014",
      "date": "2026-10-08T11:08:22.000Z",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/7d0c78c7d789c968af6653e35766df5ab7786e1110963fa3a13776c52f97a4e1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/37767433438"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.0.9014",
      "date": "2026-10-08T11:07:20.000Z",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/6014c4c0a063bfca70634911669c8e36a4dc1e88c835c20d53867180a6bd0dcb",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/37767433438"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.0.9014",
      "date": "2026-10-08T11:07:18.000Z",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/d920a77a0901609449ef1e1d8104c0f19b5bc1c1399a2ca06c6443f15a16ce48",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/37767433438"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.0.0.9014",
      "date": "2026-10-08T11:07:07.000Z",
      "commit": "e247993c6f7d3becf7f173f99a09e0307e215da2",
      "fileid": "https://r2.ropensci.org/7dbc9a09f43745323543d0ba2256e2c8ae3d2cde9002aa2019fa83ef34cda959",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/ee-lib/actions/runs/37767433438"
    }
  ]
}