Package: dmai 1.0.0

dmai: Divisia Monetary Aggregates Index

Builds monetary aggregates from their components by the methods of index number theory. The Divisia index of Barnett (1980) <doi:10.1016/0304-4076(80)90070-6> weights every component (currency, demand deposits, savings and time deposits, ...) by its share in the expenditure on monetary services, priced by its user cost (Barnett 1978) <doi:10.1016/0165-1765(78)90051-4>. Also gives the Fisher ideal index, a variant with simple growth rates, the simple-sum aggregate, the currency equivalent index of Rotemberg, Driscoll and Poterba (1995), the dual user-cost price index and the Divisia second moments of Barnett and Serletis (1990) <doi:10.1016/0304-4076(90)90104-2>; benchmark rates given or taken from the components (upper envelope); 'ggplot2' graphics, a plain-language interpretation of every result and a built-in 'shiny' application.

Authors:Muhammad Yaseen [aut, cre, cph], Ahmad Nadeem [aut, ctb]

dmai_1.0.0.tar.gz
dmai_1.0.0.zip(r-4.7-any)dmai_1.0.0.zip(r-4.6-any)dmai_1.0.0.zip(r-4.5-any)
dmai_1.0.0.tgz(r-4.6-any)dmai_1.0.0.tgz(r-4.5-any)
dmai_1.0.0.tar.gz(r-4.7-any)dmai_1.0.0.tar.gz(r-4.6-any)
dmai_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
dmai/json (API)

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

Bug tracker:https://github.com/myaseen208/dmai/issues

Pkgdown/docs site:https://myaseen208.com

Datasets:
  • cpi_ch19 - Artificial price and quantity data of the Consumer Price Index Manual
  • money_sim - Simulated monetary components and rates

On CRAN:

Conda:

quarto

4.70 score 1 stars 1 scripts 393 downloads 12 exports 18 dependencies

Last updated from:96cd3498b6. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK137
source / vignettesOK259
linux-releaseOK138
macos-releaseOK176
macos-oldrelOK138
windows-develOK134
windows-releaseOK136
windows-oldrelOK144
wasm-releaseOK98

Exports:dmaidmai_appdmai_app_objectdmai_citedmai_comparedmai_interpretdmai_momentsdmai_notationdmai_referencedmai_savedmai_themedmai_user_cost

Dependencies:clicpp11data.tablefarverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr

Benchmark rate and index formula
Abstract | The benchmark rate | The index formula | When the simple sum misleads | References

Last update: 2026-11-05
Started: 2026-11-05

Benchmark rate and index formula (PDF)
Abstract | The benchmark rate | The index formula | When the simple sum misleads | References

Last update: 2026-11-05
Started: 2026-11-05

Getting started with dmai
Abstract | The data | The Divisia aggregate | Reading the result | The other methods | User costs and second moments | Your own data | References

Last update: 2026-11-05
Started: 2026-11-05

Getting started with dmai (PDF)
Abstract | The data | The Divisia aggregate | Reading the result | The other methods | User costs and second moments | Your own data | References

Last update: 2026-11-05
Started: 2026-11-05

The application
Abstract | Starting the application | The pages | Reproducibility | Deploying | References

Last update: 2026-11-05
Started: 2026-11-05

The application (PDF)
Abstract | Starting the application | The pages | Reproducibility | Deploying | References

Last update: 2026-11-05
Started: 2026-11-05

Theory and notation
Abstract | Notation | User costs | Indexes | The dual price index | Second moments | References

Last update: 2026-11-05
Started: 2026-11-05

Theory and notation (PDF)
Abstract | Notation | User costs | Indexes | The dual price index | Second moments | References

Last update: 2026-11-05
Started: 2026-11-05

Validation and speed
Abstract | Against version 0.5.0 | Against published index numbers | Identities | Speed | References

Last update: 2026-11-05
Started: 2026-11-05

Validation and speed (PDF)
Abstract | Against version 0.5.0 | Against published index numbers | Identities | Speed | References

Last update: 2026-11-05
Started: 2026-11-05

Readme and manuals

Help Manual

Help pageTopics
Plot a dmai result with ggplot2autoplot.dmai_result
Artificial price and quantity data of the Consumer Price Index Manualcpi_ch19
Divisia monetary aggregates indexdmai dmai.default
Monetary aggregates in a web browserdmai_app dmai_app_object
References of a result or of the packagedmai_cite dmai_cite.default
Monetary aggregates by every methoddmai_compare dmai_compare.default
Plain-language interpretation of a resultdmai_interpret dmai_interpret.default format.dmai_interpretation print.dmai_interpretation
Divisia second momentsdmai_moments dmai_moments.default dmai_moments.dmai_index
Notation of dmaidmai_notation
Published values used by the tests and vignettesdmai_reference
Save a figure (vector PDF by default)dmai_save dmai_save.default
ggplot2 theme of dmaidmai_theme
User costs and expenditure shares of monetary assetsdmai_user_cost dmai_user_cost.default
Methods for dmai resultsas.data.frame.dmai_result as.data.table.dmai_result dmai-methods format.dmai_result plot.dmai_result print.dmai_result print.summary.dmai_result summary.dmai_result
Simulated monetary components and ratesmoney_sim