Learn R Programming

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

GE (version 0.2.5)

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

License

GPL-2 | GPL-3

Maintainer

LI Wu

Last Published

January 22nd, 2022

Functions in GE (0.2.5)

SCES

Standard CES Function
CES

CES Function
apply_expand.grid

Applying a Function to All Combinations of the Supplied Vectors
AMSDP

Additive-Mean-Standard-Deviation Portfolio Utility Function
CRRA

Constant Relative Risk Aversion (CRRA) Utility Function
AMSD

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

Constant Absolute Risk Aversion (CARA) Utility Function
demand_coefficient

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

Standard CES Demand Coefficient Matrix
ge_tidy

Tidy a General Equilibrium
gemCanonicalDynamicMacroeconomic_3_2

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

Overlapping Generations Financial Models for Pure Exchange Economies
gemOLGFOneFirm

Overlapping Generations Financial Models with One Firm
gemInputOutputTable_7_4

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

A Robinson Crusoe Economy
gemOLGPrivateFirm

Overlapping Generations Models with Private Firm
gemTwoCountry_Bond_7_4

An Example of Two-Country Economy with Bond
gemInputOutputTable_8_8

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

Compute Security Market Equilibria for Some Simple Cases
gemOLGPureExchange_2_2

The Basic Overlapping Generations pure exchange Model (see Samuelson, 1958)
gemInputOutputTable_2_8_4

A Two-Country General Equilibrium Model with Money
gemInputOutputTable_2_7_2

A Two-Country General Equilibrium Model
gemTwoCountryPureExchange

Some Examples of Two-Country Pure Exchange Economy
gemInputOutputTable_Leontief_3_3

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

Market-Clearing-Price Policy Function
makePolicyStickyPrice

Make a Policy of Sticky Price
node_print

Print a Tree and Its Fields
makePolicyMeanValue

Make a Mean Value Policy Function
node_prune

Prune Nodes off a Tree by Names
gemTwoCountryPureExchange_Bond

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

A General Equilibrium Model with Money
gemDualLinearProgramming

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

Some Examples of Security Pricing
gemInputOutputTable_easy_5_4

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

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

Create a Tree
gemTwoCountry_Tariff_9_5

An Example of Two-Country Economy with Tariff
node_plot

Plot a Tree and Show the Type Attribute
structural_function

Structural Function
var.p

Population Variance and Population Standard Deviation
gemOLGPureExchange_Bank

Overlapping Generations Pure Exchange Models with Bank
policyMeanValue

Mean Value Policy Function
gemPriceRegulation

Some Examples of Price Regulation
gemInputOutputTable_2_7_4

A Two-Country General Equilibrium Model
gemInputOutputTable_5_4

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

An Endogenous Production Function
gemstEndogenousUtilityFunction

An Endogenous Utility Function
gemQuasilinearPureExchange_2_2

A Pure Exchange Economy with a Quasilinear Utility Function
gemOLGFTwoFirms

Overlapping Generations Financial Models with Two Firms
gemOLGLand_4_3

An Overlapping Generations Model with Land
makePolicyIncomeTax

Make a Policy of Income Tax
iterate

Iteration Function
gemOLGTimeCircle

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

Make a Policy of Supply
gemStandardInputOutputTable_7_4

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

Make a Policy of Technology Change
sdm2

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

Marginal Utility
matrix_add_by_name

Add Matrices by Names of Columns and Rows
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).
gemTemporaryEquilibriumPath

Temporary Equilibrium Paths
sdm_dstl

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

Compute the Growth Rate
intertemporal_utility

Intertemporal Utility Function
ratio_adjust

Ratio Adjustment
rate_to_beta

Conversion between a Rate Vector and a Beta Vector
node_insert

Insert Nodes into a Tree
matrix_to_dstl

Convert a Matrix into a Demand Structural Tree List