R Observatory
Search
install.packages("BSTZINB")
CRAN 30-day downloads, method
271−17.4% down on the 30 days before, the worse direction
Test coverage, method
49%of lines run by tests

Estimation of association between disease or death counts (e.g. COVID-19) and socio-environmental risk factors using a zero-inflated Bayesian spatiotemporal model. Non-spatiotemporal models and/or models without zero-inflation are also included for comparison.

Full description

Estimation of association between disease or death counts (e.g. COVID-19) and socio-environmental risk factors using a zero-inflated Bayesian spatiotemporal model. Non-spatiotemporal models and/or models without zero-inflation are also included for comparison. Functions to produce corresponding maps are also included. See Chakraborty et al. (2022) <doi:10.1007/s13253-022-00487-1> for more details on the method.

Maintainer
Suman Majumder
Licence
GPL (>= 3)
Latest release
19 Nov 2025
First release
31 Oct 2024

Compare with another package

More details
Releases
4
Needs compilation
No
Needs R
>= 3.5
Config/testthat/edition
3
LazyData
true
RoxygenNote
7.3.2
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("BSTZINB")
APA
Majumder, S., Chakraborty, S., Dey, T., Jun, Y., & Lim, C. (2025). BSTZINB: Association Among Disease Counts and Socio-Environmental Factors (Version 2.0.1) [Computer software]. https://doi.org/10.32614/CRAN.package.BSTZINB
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for BSTZINB version 2.0.1 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    2.0.1
    Time taken
    359 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    2.0.1
    Time taken
    255 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    2.0.1
    Time taken
    273 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    2.0.1
    Time taken
    245 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    2.0.1
    Time taken
    454 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    2.0.1
    Time taken
    112 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    2.0.1
    Time taken
    449 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    2.0.1
    Time taken
    525 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    2.0.1
    Time taken
    337 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    2.0.1
    Time taken
    337 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    2.0.1
    Time taken
    115 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    2.0.1
    Time taken
    444 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    2.0.1
    Time taken
    445 s
  • 13 OK

Over time

No change since 5 Aug 2026

As a list (9)
ChangedWorst statusOKNotesWarningsErrors
5 Aug 2026OK13000
1 Aug 2026Note12100
9 Jun 2026OK13000
8 Jun 2026Error12001
2 May 2026OK13000
25 Apr 2026Error11001
8 Apr 2026OK14000
7 Apr 2026Error13001
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
283−19.1% down on the 30 days before, the worse directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.

CRAN rank

15,970 of 26,530

CRAN

271 downloads in the last 30 days

Rank
15,970 of 26,530
Change
−17.4% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

1 downloads in the last 30 days

Rank
19,986 of 30,526
Change
−88.9% down on the 30 days before, the worse direction

It is in the total. Take it out

autoCRAN

11 downloads in the last 30 days

Rank
3,876 of 29,212
Change
−15.4% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
15
Dependent packages
0
Suggested by
0
Needs (15)
Installing it adds
85 packages, 72.4 MB of source
Of those, need compilation
45
Optional extras (5)
Functions
17
Public exports
17
Lines of R code
1,807
Median complexity
9
Functions (17)
Size and composition

Lines by kind (3,325)

KindLinesShare
R code1,80754%
Tests38312%
Documentation74322%
Guides39212%

Lines by language

LanguageLinesShare
R2,17065%
Rd74322%
Vignettes39212%
Markdown200.6%

Languages are counted from file extensions.

Files
49
R functions
17
Complexity
Median
9
Mean
9
Highest
22
Median lines per function
37
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
17
Calls
8
Unconnected
7
Groups
2
Growth (4 releases)
Total lines by release
3,046 on 31 Oct 20243,325 on 19 Nov 2025
Release changes

The tests ran and coverage was measured.

Lines run by tests
48.5%
Expressions run by tests
49.7%
Test cases
4
Exports named in tests
29.4%
Coverage by file (7)
Coverage run
Lines counted
711
Lines the tests ran
345
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
4
Snapshot tests
5
Lines of tests
383
Test lines per line of code
0.21
Exports documented
100%
Arguments documented
100%
Return value documented
100%
Help pages with examples
81%
Examples run in checks
100%
Guides (1)
Other documentation
README
Yes, 48 words
Release notes file
Yes
Help pages
21
Lines of documentation
743
DatasetSizeColumns
USAcitiesUSAcities: A dataset containing state and county information for the cities in the United States3,232 × 4state_id, county_name, county_fips, population
county.adjacencycounty.adjacency: A dataframe containing neighborhood information for counties in the US22,200 × 4Countyname, fips.County, neighborname, fipsneighbor
simdatsimdat: A simulated dataset containing response and covariates with region and time information2,376 × 5sid, tid, y, V1, x
synth_dat_IAsynth_dat_IA: A dataset containing county-wise synthsized counts for the state of Iowa over 16 time points and a covariate used to generate the data1,584 × 4sid, tid, y, x

SumanM47 / bstzinb on github.com

Stars
0
Forks
0
Open issues
1
Last commit
18 Mar 2026
Activity
Commits
53
Open pull requests
0
Tagged releases
2
Latest tagged release
v1.0.1, 1 Nov 2024
Issues closed in
8 days (median)
Pull requests closed in
–
Pull requests merged
–
Created
30 May 2024
Licence file reads as
GPL-3.0
Development practices (4)
KindFound
CRAN release processcran-comments.md, revdep/, CRAN-SUBMISSION
Lint, format, editorRStudio project

Method, repository practices

Across SumanM47

R releases
  • On CRAN
  • Release
VersionReleasedR
2.0.1 current19 Nov 20254.5.2
2.0.030 Jan 20254.4.2
1.0.131 Oct 20244.4.2
1.0.031 Oct 20244.4.2
Release notes (2.0.1)

This patch tidies up a few functions to be more user-friendly and flexible.

  • Updated compute_NB_DIC and compute_ZINB_DIC to not require redundant information as input