Package: hbsaems 1.1.0

hbsaems: Hierarchical Bayesian Area-Level Small Area Estimation Models

Fits area-level Hierarchical Bayesian Small Area Estimation models. The methodological foundation follows the standard area-level Small Area Estimation literature, primarily Rao and Molina (2015, ISBN: 9781118735787) <doi:10.1002/9781118735855>, while computational implementation is adapted to the parameterisation and prior-specification conventions of the 'brms' package <doi:10.18637/jss.v080.i01>, which targets the Stan back-end. Supports a principled Bayesian workflow <doi:10.48550/arXiv.2011.01808>, with prior predictive checks, convergence diagnostics, model comparison, spatial random effects, custom distributions, missing-data handling, and a bilingual 'shiny' application for non-programmer analysts.

Authors:Achmad Syahrul Choir [aut, cre], Saniyyah Sri Nurhayati [aut], Sofi Zamzanah [aut], Arsyka Laila Oktalia Siregar [aut]

hbsaems_1.1.0.tar.gz
hbsaems_1.1.0.zip(r-4.7)hbsaems_1.1.0.zip(r-4.6)hbsaems_1.1.0.zip(r-4.5)
hbsaems_1.1.0.tgz(r-4.6-any)hbsaems_1.1.0.tgz(r-4.5-any)
hbsaems_1.1.0.tar.gz(r-4.7-any)hbsaems_1.1.0.tar.gz(r-4.6-any)
hbsaems_1.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
hbsaems/json (API)
NEWS

# Install 'hbsaems' in R:
install.packages('hbsaems', repos = c('https://madsyair.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/madsyair/hbsaems/issues

Pkgdown/docs site:https://madsyair.github.io

Datasets:

On CRAN:

Conda:

5.39 score 1 stars 61 scripts 229 downloads 72 exports 108 dependencies

Last updated from:21eff3ec5c. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK261
source / vignettesOK375
linux-release-x86_64OK256
macos-release-arm64OK201
macos-oldrel-arm64OK164
windows-develOK211
windows-releaseOK217
windows-oldrelOK203
wasm-releaseOK176

Exports:brms_custom_loglogisticbrms_custom_shifted_loglogisticbuild_brms_custom_familybuild_spatial_weightcheck_datacheck_shiny_depscheck_spatial_weightconvergence_checkdiagnostic_summarydloglogisticdshifted_loglogisticget_hbsae_modelhbcchbmhbm_betalogitnormhbm_binlogitnormhbm_controlhbm_datahbm_flexhbm_infohbm_lnlnhbm_nonlinearhbm_priorshbm_warningshbmchbmfithbpchbsaeis_convergedis.hbcc_resultsis.hbmc_resultsis.hbmfitis.hbpc_resultsis.hbsae_resultsis.hbsaems_checklist_hbsae_modelslog_lik_loglogisticlog_lik_shifted_loglogisticmodel_averagemodel_comparemodel_compare_allploglogisticposterior_drawsposterior_epred_loglogisticposterior_epred_shifted_loglogisticposterior_intervalposterior_predict_loglogisticposterior_predict_shifted_loglogisticposterior_summary_hbmprior_checkprior_drawsprior_sensitivitypshifted_loglogisticqloglogisticqshifted_loglogisticread_stan_functionregister_hbsae_brms_customregister_hbsae_modelrloglogisticrshifted_loglogisticrun_sae_appsae_aggregatesae_benchmarksae_filtersae_predictsae_scalesae_transformtrtr_keystr_langsupdate_hbmvalidate_hbmfit

Dependencies:abindbackportsbayesplotBHbitbit64bootbridgesamplingbrmsBrobdingnagbroomcallrcheckmateclicliprcodacodetoolscpp11crayondescdigestdistributionaldplyrfarverforcatsforeachfuturefuture.applygenericsggplot2ggridgesglmnetglobalsgluegridExtragtablehavenhmsinlineisobanditeratorsjomolabelinglatticelifecyclelistenvlme4loomagrittrMASSMatrixmatrixStatsmgcvmiceminqamitmlmvtnormnleqslvnlmenloptrnnetnumDerivordinalpanparallellypillarpkgbuildpkgconfigplyrposteriorprettyunitsprocessxprogresspspurrrQuickJSRR6rbibutilsRColorBrewerRcppRcppEigenRcppParallelRdpackreadrreformulasreshape2rlangrpartrstanrstantoolsS7scalesshapeStanHeadersstringistringrsurvivaltensorAtibbletidyrtidyselecttzdbucminfutf8vctrsviridisLitevroomwithr

Complete Workflow with hbsaems 1.1.0

Rendered fromcomplete-workflow.Rmdusingknitr::rmarkdownon Jun 03 2026.

Last update: 2026-06-01
Started: 2026-05-15

Readme and manuals

Help Manual

Help pageTopics
Province-level Adjacency Matrixadjacency_matrix_car
Regency-level Adjacency Matrix (Coarse Spatial Cluster)adjacency_matrix_car_regency
Loglogistic as a Custom Distribution Family for brmsbrms_custom_loglogistic
Shifted Loglogistic as a Custom Distribution Family for brmsbrms_custom_shifted_loglogistic
Build a brms Custom Family + Stanvars Pair from a Single Specbuild_brms_custom_family
build_spatial_weight: Construct M for CAR / SAR modelsbuild_spatial_weight
Inspect Data Before Fitting an HBSAE Modelcheck_data
Check Shiny App Dependenciescheck_shiny_deps
Validate a Spatial Weight Matrix Against CAR/SAR Theorycheck_spatial_weight
MCMC Convergence Diagnostics for Fitted HBMsconvergence_check
Simulated Beta Logit-Normal Datadata_betalogitnorm
Simulated Binomial Logit-Normal Datadata_binlogitnorm
Simulated Fay-Herriot Normal Datadata_fhnorm
Simulated Lognormal-Lognormal Datadata_lnln
Deprecated Functionsdeprecated hbcc hbmc hbpc hbsae
Extract a Diagnostic Summarydiagnostic_summary
Inspect a Registered HBSAE Model Specificationget_hbsae_model
hbm: Hierarchical Bayesian Small Area Modelshbm
Small Area Estimation Under a Beta Likelihood (Logit-Normal Link)hbm_betalogitnorm
Small Area Estimation under a Binomial Logit-Normal Modelhbm_binlogitnorm
Sampler Configuration for HBSAE Modelshbm_control
Return the Data Used to Fit an hbmfithbm_data
Fit a Flexible HBSAE Model with Any Registered Familyhbm_flex
Get Comprehensive Model Informationhbm_info
Small Area Estimation under a Lognormal-Lognormal Modelhbm_lnln
Nonlinear-Term Configuration for HBSAE Modelshbm_nonlinear
Prior Configuration for HBSAE Modelshbm_priors
Get Model Warningshbm_warnings
Model Inspection Helpershbm-info
User-Facing Helper to Build an hbmfit Objecthbmfit
The hbmfit S3 Classhbmfit-class
Standard S3 Methods for hbmfithbmfit-methods
Test Whether a Fitted HBM Has Convergedis_converged
Test Whether an Object Belongs to an hbsaems Result Classis-hbsaems is.hbcc_results is.hbmc_results is.hbmfit is.hbpc_results is.hbsae_results
Test Whether an Object Is an hbsaems Check Resultis.hbsaems_check
List Registered HBSAE Modelslist_hbsae_models
Loglogistic Distribution Functionsdloglogistic loglogistic ploglogistic qloglogistic rloglogistic
Bayesian Model Averaging on Small-Area Estimatesmodel_average
Compare One or Two Fitted HBMsmodel_compare
Compare Multiple Fitted HBMsmodel_compare_all
Compare Fitted HBMsmodel-compare
Plot a Fitted hbmfit Objectplot.hbmfit
Extract Posterior Draws as a Matrixposterior_draws
Compute Credible Intervals for an hbmfit Objectposterior_interval posterior_interval.hbmfit
Comprehensive Posterior Summaryposterior_summary_hbm
Posterior and Prior Extraction Methods for hbmfitposterior-methods
Prior Predictive Check for Fitted HBMsprior_check
Extract Prior Drawsprior_draws prior_draws.hbmfit
Power-Scale Prior Sensitivity Diagnostics for Fitted HBMsprior_sensitivity
Read the Stan Function Code for a Custom Distributionread_stan_function
Register a brms Custom Family with the hbsaems Model Registryregister_hbsae_brms_custom
Register a Custom HBSAE Modelregister_hbsae_model
run_sae_app: Interactive Small Area Estimation Applicationrun_sae_app
Aggregate Predictions from Multiple hbsae_resultssae_aggregate
Benchmark Small-Area Estimates to Known Totalssae_benchmark
Filter SAE Predictions by a Logical Conditionsae_filter
Generate Small Area Estimatessae_predict
Standardise SAE Predictionssae_scale
Apply a Transformation to SAE Predictionssae_transform
Shifted (3-Parameter) Loglogistic Distributiondshifted_loglogistic pshifted_loglogistic qshifted_loglogistic rshifted_loglogistic shifted_loglogistic
Spatial Weight Matrix for Simultaneous Autoregressive Modelsspatial_weight_sar
Generic Summary Method for hbsaems Check Resultssummary.hbsaems_check
Translate a UI String for the Shiny SAE Apptr
List All Translation Keys (for a Reference Language)tr_keys
List Available Languagestr_langs
Update a Fitted HBMupdate_hbm
Validate an hbmfit Objectvalidate_hbmfit