Learn R Programming

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

GE (version 0.2.6)

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.6

License

GPL-2 | GPL-3

Maintainer

LI Wu

Last Published

February 5th, 2022

Functions in GE (0.2.6)

apply_expand.grid

Applying a Function to All Combinations of the Supplied Vectors
demand_coefficient

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

Additive-Mean-Standard-Deviation Portfolio Utility Function
demCreditPolicy

A Disequilibrium Model with Credit
CRRA

Constant Relative Risk Aversion (CRRA) Utility Function
CARA

Constant Absolute Risk Aversion (CARA) Utility Function
SCES_A

Standard CES Demand Coefficient Matrix
AMSD

Additive-Mean-Variance Utility Function and Additive-Mean-Standard-Deviation Utility Function
CES

CES Function
SCES

Standard CES Function
gemHeterogeneousFirms_2_3

Instantaneous Equilibrium Paths with Heterogeneous Firms
gemExogenousPrice

Some Examples with Exogenous Price (Price Regulation)
gemInputOutputTable_7_4

A General Equilibrium Model based on a 7x4 (Standard) Input-Output Table
gemDualLinearProgramming

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

General Equilibrium Models based on a 5x5 Input-Output Table (see Zhang Xin, 2017, Table 3.2.1)
gemExogenousPrice_EndogenousLaborSupply_3_3

An Example of Price Regulation and Endogenous Labor Supply (Example 9.5 of Li, 2019)
gemInputOutputTable_2_8_4

A Two-Country General Equilibrium Model with Money
gemInputOutputTable_5_4

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

Some Examples with Exogenous Utility Level and Endogenous Labor Supply
gemCanonicalDynamicMacroeconomic_3_2

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

Tidy a General Equilibrium
gemInputOutputTable_SCES_3_3

A SCES-type General Equilibrium Model based on an Input-Output Table.
gemInputOutputTable_2_2

A General Equilibrium Model based on a 2x2 (Unbalanced) Input-Output Table
gemInputOutputTable_2_7_2

A Two-Country General Equilibrium Model
gemOLGLand_4_3

An Overlapping Generations Model with Land
gemOLGPrivateFirm

Overlapping Generations Models with Private Firm
gemOLGTimeCircle

Time-Circle Models (Closed Loop Overlapping Generations Models)
gemOpenEconomy_4_4

A 4-by-4 Open Economy with Bond
gemInputOutputTable_2_7_4

A Two-Country General Equilibrium Model
gemInputOutputTable_8_8

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

Overlapping Generations Pure Exchange Models with Bank
gemInputOutputTable_Leontief_3_3

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

The Basic Overlapping Generations Pure Exchange Model (see Samuelson, 1958)
gemTemporaryEquilibriumPath

Some Examples of Temporary Equilibrium Paths
gemTwoCountryForeignExchangeRate_6_6

Example 7.6 (Foreign Exchange Rate) in Li (2019)
gemSecurityPricingExample

Some Examples of Security Pricing
gemQuasilinearPureExchange_2_2

A Pure Exchange Economy with a Quasilinear Utility Function
gemOpenEconomy_6_6

A 6-by-6 Open Economy with Bond
makePolicyStickyPrice

Make a Policy of Sticky Price
gemstEndogenousProductionFunction

An Endogenous Production Function
makePolicySupply

Make a Policy of Supply
makePolicyTechnologyChange

Make a Policy of Technology Change
intertemporal_utility

Intertemporal Utility Function
policyMeanValue

Mean Value Policy Function
gemTax_5_4

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

Iteration Function
marginal_utility

Marginal Utility
rate_to_beta

Conversion between a Rate Vector and a Beta Vector
node_insert

Insert Nodes into a Tree
gemstEndogenousUtilityFunction

An Endogenous Utility Function
gemCanonicalDynamicMacroeconomic_4_3

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

Create a Tree
node_set

Create a Tree or Set Attributes for a Node
gemInputOutputTable_easy_5_4

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

Add Matrices by Names of Columns and Rows
gemTwoCountry_Bond_7_4

An Example of Two-Country Economy with Bond
gemTwoCountryPureExchange

Some Examples of Two-Country Pure Exchange Economy
gemTwoCountry_RealExchangeRateIndex_7_4

Calculating Real Exchange Rate Index
matrix_to_dstl

Convert a Matrix into a Demand Structural Tree List
gemTwoCountryPureExchange_Bond

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

Market-Clearing-Price Policy Function
var.p

Population Variance and Population Standard Deviation
gemOLGFPureExchange

Overlapping Generations Financial Models for Pure Exchange Economies
gemRobinson_3_2

A Robinson Crusoe Economy
gemstStructuralMultipleEquilibria_2_2

Structural Multiple Equilibria and Structural Transition Policy
gemOLGFTwoFirms

Overlapping Generations Financial Models with Two Firms
growth_rate

Compute the Growth Rate
gemSecurityPricing

Compute Security Market Equilibria for Some Simple Cases
gemTwoCountry_Tariff_9_5

An Example of Two-Country Economy with Tariff
gemMoney_3_2

A General Equilibrium Model with Money
gemConstantGrowthPath_TechnologyProgress_3_3

Constant Growth Paths with Technology Progress
gemOLGFOneFirm

Overlapping Generations Financial Models with One Firm
node_prune

Prune Nodes off a Tree by Names
sdm_dstl

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

Structural Function
makePolicyMeanValue

Make a Mean Value Policy Function
ratio_adjust

Ratio Adjustment
makePolicyIncomeTax

Make a Policy of Income Tax
sdm2

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

Print a Tree and Its Fields
gemTwoIndustries_4_3

A 4-by-3 Economy with Two Industries
node_plot

Plot a Tree and Show the Type Attribute
node_replace

Replace a Node of a Tree