Learn R Programming

⚠️There's a newer version (0.4.8) of this package.Take me there.

GE (version 0.2.2)

General Equilibrium Modeling

Description

Some tools for developing general equilibrium models and some general equilibrium models. These models can be used for teaching economic theory and are built by the methods of new structural economics (see and LI Wu, 2019, ISBN: 9787521804225, General Equilibrium and Structural Dynamics: Perspectives of New Structural Economics. Beijing: Economic Science Press). The model form and mathematical methods can be traced back to von Neumann, J. (1945, A Model of General Economic Equilibrium. The Review of Economic Studies, 13. pp. 1-9) and Kemeny, J. G., O. Morgenstern and G. L. Thompson (1956, A Generalization of the von Neumann Model of an Expanding Economy, Econometrica, 24, pp. 115-135) et al. By the way, J. G. Kemeny is a co-inventor of the computer language BASIC.

Copy Link

Version

Install

install.packages('GE')

Monthly Downloads

411

Version

0.2.2

License

GPL-2 | GPL-3

Maintainer

LI Wu

Last Published

September 27th, 2021

Functions in GE (0.2.2)

apply_expand.grid

Applying a Function to All Combinations of the Supplied Vectors
gemInputOutputTable_2_7_2

A Two-Country General Equilibrium Model
gemInputOutputTable_5_4

A General Equilibrium Model based on a 5x4 Input-Output Table (see Zhang Xin, 2017)
gemInputOutputTable_8_8

A General Equilibrium Model based on an 8x8 Input-Output Table
gemInputOutputTable_Leontief_3_3

A Leontief-type General Equilibrium Model based on a 3x3 Input-Output Table
gemInputOutputTable_2_7_4

A Two-Country General Equilibrium Model
gemInputOutputTable_CES_3_3

A CES-type General Equilibrium Model based on an Input-Output Table.
gemInputOutputTable_easy_5_4

An Easy General Equilibrium Model based on a 5x4 Input-Output Table (see Zhang Xin, 2017)
gemInputOutputTable_7_4

A General Equilibrium Model based on a 7x4 Input-Output Table
gemInputOutputTable_2_8_4

A Two-Country General Equilibrium Model with Money
gemMoney_3_2

A General Equilibrium Model with Money
node_new

Create a Tree
intertemporal_utility

Intertemporal Utility Function
makePolicySupply

Make a Policy of Supply
growth_rate

Compute the Growth Rate
makePolicyStickyPrice

Make a Policy of Sticky Price
iterate

Iteration Function
gemQuasilinearPureExchange_2_2

A Pure Exchange Economy with a Quasilinear Utility Function
makePolicyIncomeTax

Make a Policy of Income Tax
gemRobinson_3_2

A Robinson Crusoe Economy
gemTwoCountryPureExchange_Bond

Some Examples of Two-Country Pure Exchange Economy with Bond
gemTwoCountryPureExchange

Some Examples of Two-Country Pure Exchange Economy
gemStandardInputOutputTable_7_4

A General Equilibrium Model based on a 7x4 Standard Input-Output Table
policyMeanValue

Mean Value Policy Function
policyMarketClearingPrice

Market-Clearing-Price Policy Function
rate_to_beta

Conversion between a Rate Vector and a Beta Vector
ratio_adjust

Ratio Adjustment
gemTwoCountry_Tariff_9_5

An Example of Two-Country Economy with Tariff
gemTwoCountry_Bond_7_4

An Example of Two-Country Economy with Bond
matrix_to_dstl

Convert a Matrix into a Demand Structural Tree List
node_insert

Insert Nodes into a Tree
sdm_dstl

Structural Dynamic Model (alias Structural Growth Model) with a Demand Structure Tree List
sdm2

Structural Dynamic Model (alias Structural Growth Model) Version 2
node_plot

Plot a Tree and Show the Type Attribute
node_print

Print a Tree and Its Fields
node_prune

Prune Nodes off a Tree by Names
node_set

Create a Tree or Set Attributes for a Node
node_replace

Replace a Node of a Tree
gemTax_5_4

A General Equilibrium Model with Tax (see Cardenete et al., 2012).
matrix_add_by_name

Add Matrices by Names of Columns and Rows
makePolicyTechnologyChange

Make a Policy of Technology Change
structural_function

Structural Function
CRRA

Constant Relative Risk Aversion (CRRA) Utility Function
demand_coefficient

Compute Demand Coefficients of an Agent with a Demand Structural Tree
SCES_A

Standard CES Demand Coefficient Matrix
SCES

Standard CES Function
ge_tidy

Tidy a General Equilibrium
gemCanonicalDynamicMacroeconomic_3_2

A Canonical Dynamic Macroeconomic General Equilibrium Model (see Torres, 2016)
gemDualLinearProgramming

General Equilibrium Models and Linear Programming Problems (see Winston, 2003)
CARA

Constant Absolute Risk Aversion (CARA) Utility Function
CES

CES Function