Learn R Programming

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

GE (version 0.3.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

629

Version

0.3.4

License

GPL-2 | GPL-3

Maintainer

LI Wu

Last Published

January 6th, 2023

Functions in GE (0.3.4)

AMSDP

Additive-Mean-Standard-Deviation Portfolio Utility Function
DCES

Displaced CES Utility Function and Displaced CES Demand Function
CES

CES Function
gemCanonicalDynamicMacroeconomic_4_3

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

Some Examples of Balanced Growth Paths
gemCanonicalDynamicMacroeconomic_3_2

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

Tidy a General Equilibrium
demand_coefficient

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

A Disequilibrium Model with Credit
gemAssetPricing

Compute Asset Market Equilibria for Some Simple Cases
gemCoffeeProblem_3_3

Coffee Problem: Some Examples of Equilibrium and Disequilibrium Pure Exchange Economies
gemCapitalAccumulation

Some Examples of Market-Clearing Paths with Capital Accumulation
gemExogenousUtilityLevel_EndogenousLaborSupply_3_3

Some Examples with Exogenous Utility Level and Endogenous Labor Supply
gemFirmAsConsumer

Some Examples of Treating Firms as Consumer-Type Agents
gemEquityShare_3_3

A General Equilibrium Model with Equity Shares
gemConstantGrowthPath_TechnologyProgress_3_3

Constant Growth Paths with Technology Progress
gemDCES_5_3

A Model with a Displaced CES Utility Function
gemHeterogeneousFirms_2_3

Market Clearing Paths with Heterogeneous Firms
gemEquityShare_Bond_4_4

A General Equilibrium Model with Equity Shares and Bond
gemInputOutputTable_2_2

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

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

Some Examples with Exogenous Price (Price Regulation)
gemExogenousPrice_EndogenousLaborSupply_3_3

An Example of Price Regulation and Endogenous Labor Supply (Example 9.5 of Li, 2019)
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_2

A Two-Country General Equilibrium Model
gemInputOutputTable_SCES_3_3

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

A Two-Country General Equilibrium Model
gemInputOutputTable_5_5

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

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

A Time Circle Model with One Consumer and Two Types of Firms
gemIntertemporal_TimeCircle_3_4

A Time Circle Model with Two Consumers and Two Types of Firms
gemIntertemporal_Bank_1_2

Some Examples of an Intertemporal Model with a Consumer and a Type of Bank
gemIntertemporal_Bank_1_3

Some Examples of an Intertemporal Model with Two Consumers and a Type of Bank
gemInputOutputTable_5_4

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

A Two-Country General Equilibrium Model with Money
gemIntertemporalStochastic_Bank_3Periods

An Intertemporal Stochastic Model with a Consumer and Some Banks
gemIntertemporal_2_2

Some Examples of a 2-by-2 Intertemporal Equilibrium Model
gemInputOutputTable_easy_5_4

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

Some Examples of a Time Circle Model with a Consumer and a Type of Bank
gemOLGFPureExchange

Overlapping Generations Financial Models for Pure Exchange Economies
gemIntertemporal_3_3

Some Examples of Intertemporal Models with One Consumer and Two Types of Firms
gemMoney_3_3

Some 3-by-3 General Equilibrium Models with Money
gemOLGFOneFirm

Overlapping Generations Financial Models with One Firm
gemMarketClearingPath_2_2

Some Examples of Market Clearing Paths
gemIntertemporal_3_4

Some Examples of Intertemporal Models with Two Consumers and Two Types of Firms
gemMoney_3_2

A General Equilibrium Model with Money
gemIntertemporal_TimeCircle_Stochastic_2_2

A Time Circle Model with Uncertainty
gemOLGFTwoFirms

Overlapping Generations Financial Models with Two Firms
gemLand_Labor

Some Examples of Market Clearing Paths Involving Land and Labor
gemLand_Labor_Capital_4_3

Some Examples of Market Clearing Paths Involving Land, Labor and Capital
gemOpenEconomy_4_4

A 4-by-4 Open Economy with Bond
gemIntertemporal_Stochastic_2_2

An Intertemporal Model with Uncertainty
gemIntertemporal_TimeCircle_2_2

Some Examples of a 2-by-2 Time Circle Equilibrium Model
gemOLGPureExchange_Bank

Overlapping Generations Pure Exchange Models with Bank
gemOLGPureExchange_2_2

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

A Pure Exchange Economy with a Quasilinear Utility Function
gemPersistentTechnologicalProgress

Some Examples of Market Clearing Paths with Persistent Technological Progress
gemOpenEconomy_6_6

A 6-by-6 Open Economy with Bond
gemSecurityPricingExample

Some Examples of Security Pricing
gemRobinson_3_2

A Robinson Crusoe Economy
gemOLGLand_4_3

An Overlapping Generations Model with Land
gemOLGPrivateFirm

Overlapping Generations Models with Private Firm
gemTax_3_3

Some General Equilibrium Models with Tax
gemTax_VAT_IncomeTax_5_4

A General Equilibrium Model with Value-added Tax and Income Tax
gemTax_QuasilinearPreference_4_4

A General Equilibrium Model with Tax and Quasilinear Utility Functions.
gemSecurityPricing

Compute Security Market Equilibria for Some Simple Cases
gemTemporaryEquilibriumPath

Some Examples of Temporary Equilibrium Paths
gemOLGTimeCircle

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

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

A 3-by-3 OLG Stochastic Sequential General Equilibrium Model
gemTwoCountry_Tariff_9_5

An Example of Two-Country Economy with Tariff
gemTwoCountryForeignExchangeRate_6_6

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

A General Equilibrium Model with Tax
gemTwoCountryPureExchange

Some Examples of Two-Country Pure Exchange Economy
gem_3_3

Some Simple 3-by-3 General Equilibrium Models
gemTwoIndustries_4_3

A 4-by-3 Economy with Two Industries
gemTwoCountry_Bond_7_4

An Example of Two-Country Economy with Bond
gemTwoCountry_RealExchangeRateIndex_7_4

Calculating Real Exchange Rate Index
gem_3_4

Some Simple 3-by-4 General Equilibrium Models
gemTwoCountryPureExchange_Bond

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

Make a Mean Value Policy Function
gemstEndogenousProductionFunction

An Endogenous Production Function
makePolicyIncomeTax

Make a Policy of Income Tax
iterate

Iteration Function
gem_2_2

Some Simple 2-by-2 General Equilibrium Models
gem_3_2

Some Simple 3-by-2 General Equilibrium Models
makePolicyStickyPrice

Make a Policy of Sticky Price
makeCountercyclicalProductTax

Make a Countercyclical Product Tax Policy Function
gemstStructuralMultipleEquilibria_2_2

Structural Multiple Equilibria and Structural Transition Policy
node_print

Print a Tree and Its Fields
matrix_add_by_name

Add Matrices by Names of Columns and Rows
growth_rate

Compute the Growth Rate
matrix_aggregate

Aggregate Some Rows and Columns of a Matrix
gemstEndogenousUtilityFunction

Some General Equilibrium Models with Endogenous Utility Function
node_plot

Plot a Tree and Show the Type Attribute
makePolicySupply

Make a Policy of Supply
node_new

Create a Tree
node_prune

Prune Nodes off a Tree by Names
matrix_to_dstl

Convert a Matrix into a Demand Structural Tree List
node_replace

Replace a Node of a Tree
ratio_adjust

Ratio Adjustment
policyMeanValue

Mean Value Policy Function
makePolicyTechnologyChange

Make a Policy of Technology Change
node_set

Create a Tree or Set Attributes for a Node
sdm2

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

Conversion between a Rate Vector and a Beta Vector
marginal_utility

Marginal Utility
var.p

Population Variance and Population Standard Deviation
node_insert

Insert Nodes into a Tree
sdm_dstl

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

Structural Function
policyMarketClearingPrice

Market-Clearing-Price Policy Function
output

Compute the Utility of a Consumer or the Output of a Firm by the Demand Structural Tree
AMSD

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

Constant Absolute Risk Aversion (CARA) Utility Function
MDCES_demand

Modified Displaced CES Demand Function
CRRA

Constant Relative Risk Aversion (CRRA) Utility Function
SCES

Standard CES Function
SCES_A

Standard CES Demand Coefficient Matrix
apply_expand.grid

Applying a Function to All Combinations of the Supplied Vectors