Learn R Programming

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

GE (version 0.1.4)

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

595

Version

0.1.4

License

GPL-2 | GPL-3

Maintainer

LI Wu

Last Published

June 11th, 2020

Functions in GE (0.1.4)

SCES

Standard CES Function
gemMoney_3_2

A General Equilibrium Model with Money
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)
gemQuasilinearPureExchange_2_2

A Pure Exchange Economy with a Quasilinear Utility Function
gemRobinson_3_2

A Robinson Crusoe Economy
gemInputOutputTable_Leontief_3_3

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

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

A Two-Country General Equilibrium Model with Money
makePolicyIncomeTax

Make a Policy of Income Tax
gemStandardInputOutputTable_7_4

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

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

Create a Tree
sdm2

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

Ratio Adjustment
node_insert

Insert Nodes into a Tree
node_replace

Replace a Node of a Tree
growth_rate

Compute the Growth Rate
node_prune

Prune Nodes off a Tree by Names
gemTwoCountryPureExchange

Some Examples of Two-Country Pure Exchange Economy
policyMeanValue

Mean Value Policy Function
makePolicySupply

Make a Policy of Supply
gemInputOutputTable_7_4

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

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

Make a Policy of Sticky Price
rate_to_beta

Conversion between a Rate Vector and a Beta Vector
intertemporal_utility

Intertemporal Utility Function
matrix_add_by_name

Add Matrices by Names of Columns and Rows
iterate

Iteration Function
matrix_to_dstl

Convert a Matrix into a Demand Structural Tree List
structural_function

Structural Function
makePolicyTechnologyChange

Make a Policy of Technology Change
node_plot

Plot a Tree and Show the Type Attribute
sdm_dstl

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

Print a Tree and Its Fields
policyMarketClearingPrice

Market-Clearing-Price Policy Function
node_set

Create a Tree or Set Attributes for a Node
CARA

Constant Absolute Risk Aversion (CARA) Utility Function
CRRA

Constant Relative Risk Aversion (CRRA) Utility Function
SCES_A

Standard CES Demand Coefficient Matrix
CES

CES Function
apply_expand.grid

Applying a Function to All Combinations of the Supplied Vectors
gemCanonicalDynamicMacroeconomic_3_2

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

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

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

Tidy a General Equilibrium