spi (development version)
New features
spi_case_date(),spi_case_panel(),spi_pop_panel(),spi_pop_index(),spi_window()andspi_panel_months()turn POLIS AFP and population tables into the inputs ofspi_expected().spi_window_summary()reads SPI over a rolling window from one fit on the full history, for districts or for provinces summed within each draw.spi_index()is unchanged and still refits per assessment year.spi_window_classify()sets a rolling-window SPI against its threshold, with the 90% interval rule, and the NPAFP rate against its target. Units with an expected count belowmin_expectedare left unclassified.spi_rolling_index()chains these steps, fitting the model when no fit is given.
spi 0.3.0
Bug fixes
spi_index()centres each posterior draw on the national ratio from the same draw, then summarises. Uncertainty shared by all districts in a period no longer widens district intervals. Recalculate centred results from 0.2.0.Simple SPI reports explain missing SPI values when the national ratio is zero.
New features
spi_simple()calculates SPI from each district’s earlier NPAFP rate, without INLA or boundaries.spi_simple_explain()shows one district’s simple calculation, in English or another language.spi_compare_npafp()andspi_field_guide()accept simple SPI results.spi_check_inputs(method = "simple")checks simple SPI inputs.
spi 0.2.0
Breaking changes
Renamed the package from
blindspottospiand thebs_prefix tospi_. Recreate saved results.spi_concordance()is nowspi_compare_npafp(), with renamed categories and columns.bs_spi_prospective()is nowspi_index().bs_spi()and thespi_triangulate*()functions are removed.
New features
National centring is the default, with ratios in
$national.spi_check_inputs()checks inputs before fitting.spi_field_guide_pager()creates printable district reports.STEPS covers strength, timeliness, extent, persistence and stool adequacy.
year_end_monthsupports reporting years ending in any month.Model defaults are now
overdispersion = "nb"andyear_effect = "iid".seedcontrols both R and INLA sampling.