Package: godley 0.2.2
godley: Stock-Flow-Consistent Model Simulator
Define, simulate, and validate stock-flow consistent (SFC) macroeconomic models. The godley R package offers tools to dynamically define model structures by adding variables and specifying governing systems of equations. With it, users can analyze how different macroeconomic structures affect key variables, perform parameter sensitivity analyses, introduce policy shocks, and visualize resulting economic scenarios. The accounting structure of SFC models follows the approach outlined in the seminal study by Godley and Lavoie (2007, ISBN:978-1-137-08599-3), ensuring a comprehensive integration of all economic flows and stocks. The algorithms implemented to solve the models are based on methodologies from Kinsella and O'Shea (2010) <doi:10.2139/ssrn.1729205>, Peressini and Sullivan (1988, ISBN:0-387-96614-5), and contributions by Joao Macalos.
Authors:
godley_0.2.2.tar.gz
godley_0.2.2.zip(r-4.5)godley_0.2.2.zip(r-4.4)godley_0.2.2.zip(r-4.3)
godley_0.2.2.tgz(r-4.5-any)godley_0.2.2.tgz(r-4.4-any)godley_0.2.2.tgz(r-4.3-any)
godley_0.2.2.tar.gz(r-4.5-noble)godley_0.2.2.tar.gz(r-4.4-noble)
godley_0.2.2.tgz(r-4.4-emscripten)godley_0.2.2.tgz(r-4.3-emscripten)
godley.pdf |godley.html✨
godley/json (API)
# Install 'godley' in R: |
install.packages('godley', repos = c('https://gamrot.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/gamrot/godley/issues
Pkgdown site:https://gamrot.github.io
Last updated 1 days agofrom:05d50e0113. Checks:9 OK. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Mar 12 2025 |
R-4.5-win | OK | Mar 12 2025 |
R-4.5-mac | OK | Mar 12 2025 |
R-4.5-linux | OK | Mar 12 2025 |
R-4.4-win | OK | Mar 12 2025 |
R-4.4-mac | OK | Mar 12 2025 |
R-4.4-linux | OK | Mar 12 2025 |
R-4.3-win | OK | Mar 12 2025 |
R-4.3-mac | OK | Mar 12 2025 |
Exports:add_equationadd_scenarioadd_shockadd_variablechange_initcreate_modelcreate_sensitivitycreate_shockdplot_cyclesplot_simulationpreparesimulate_scenario
Dependencies:askpassbackportsbase64encbslibcachemcheckmateclicolorspacecpp11crosstalkcurldata.tabledigestdplyrevaluatefansifarverfastmapfontawesomefsgenericsggplot2gluegtablehighrhtmltoolshtmlwidgetshttrigraphisobandjquerylibjsonliteknitrlabelinglaterlatticelazyevallifecyclelubridatemagrittrMASSMatrixmemoisemgcvmimemunsellnlmeopensslpillarpkgconfigplotlypracmapromisespurrrR6rappdirsRColorBrewerRcpprlangrmarkdownrootSolvesassscalesstringistringrsystibbletidyrtidyselecttimechangetinytexutf8vctrsvecsetsviridisLitevisNetworkwithrxfunyaml
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Add equations to the model | add_equation |
Add single equation to the model | add_equation_single |
Add scenario to the model | add_scenario |
Add shock to shock object | add_shock |
Add variables to the model | add_variable |
Add single variable to the model | add_variable_single |
Change initial value of a variable | change_init |
Create SFC model object | create_model |
Create model with sensitivity scenarios | create_sensitivity |
Create shock used in 'add_scenario()'. | create_shock |
Calculate 1 order lag difference of a variable in model | d |
Network plot of the model | plot_cycles |
Plot simulations of multiple variables in multiple scenarios | plot_simulation |
Make initial matrix row for baseline scenario and prepare equations for 'simulate_scenario()' | prepare |
Simulate scenario of SFC model object | simulate_scenario |