GHRmodel0.1.1 package

Bayesian Hierarchical Modelling of Spatio-Temporal Health Data

as_GHRformulas

Convert R-INLA Model Formulas into a GHRformulas Object

cov_add

Add Covariates to All Combinations

cov_interact

Generate Interaction Terms Between Covariates

cov_multi

Create Covariate Combinations Across Groups

cov_nl

Create Non-Linear Effects for INLA

cov_uni

Build Univariable Covariate Sets

cov_varying

Create Spatially or Temporally Varying Effects for INLA

crossbasis_inla

Create a Two-Dimensional INLA-compatible Cross-basis Matrix

crosspred_inla

Generate DLNM Predictions from GHRmodels Objects

extract_names

Extract Covariate Names

fit_models

Fit Multiple INLA Models

get_covariates

Retrieve Covariates from a GHRmodels Object as a List of Character V...

GHRmodel-package

GHRmodel: Bayesian Hierarchical Modelling of Spatio-Temporal Health Da...

lag_cov

Generate lagged variables for one or more lags

onebasis_inla

Create a One-Dimensional Basis for INLA

plot_coef_crosspred

Plot crosspred Objects: Overall, Slices, or Heatmap

plot_coef_lin

Produce a Forest Plot of Linear Covariates from a GHRmodels Object

plot_coef_nl

Plot Nonlinear Effects from a GHRmodels Object

plot_coef_varying

Produce a Forest Plot for a Spatially or Temporally Varying Effects fr...

plot_fit

Plot Observed vs. Fitted Cases

plot_gof

Plot Models by Goodness-of-Fit

plot_ppd

Plot Posterior Predictive Densities Versus Observed Data

plot_re

Plot Random Effects

rank_models

Rank Models by Goodness-of-Fit

sample_ppd

Sample from the Posterior Predictive Distribution

stack_models

Merge GHRmodels

subset_models

Subset GHRmodels Objects

write_inla_formulas

Generate INLA-compatible Model Formulas

Supports modeling health outcomes using Bayesian hierarchical spatio-temporal models with complex covariate effects (e.g., linear, non-linear, interactions, distributed lag linear and non-linear models) in the 'INLA' framework. It is designed to help users identify key drivers and predictors of disease risk by enabling streamlined model exploration, comparison, and visualization of complex covariate effects. See an application of the modelling framework in Lowe, Lee, O'Reilly et al. (2021) <doi:10.1016/S2542-5196(20)30292-8>.

  • Maintainer: Carles Milà
  • License: GPL (>= 2)
  • Last published: 2025-11-07