Learn R Programming

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

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

357

Version

0.2.4

License

GPL-2 | GPL-3

Maintainer

LI Wu

Last Published

January 9th, 2022

Functions in GE (0.2.4)

CARA

Constant Absolute Risk Aversion (CARA) Utility Function
SCES_A

Standard CES Demand Coefficient Matrix
demand_coefficient

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

Constant Relative Risk Aversion (CRRA) Utility Function
SCES

Standard CES Function
CES

CES Function
apply_expand.grid

Applying a Function to All Combinations of the Supplied Vectors
AMSD

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

Tidy a General Equilibrium
AMSDP

Additive-Mean-Standard-Deviation Portfolio Utility Function
gemInputOutputTable_2_7_2

A Two-Country General Equilibrium Model
gemInputOutputTable_2_7_4

A Two-Country General Equilibrium Model
gemInputOutputTable_Leontief_3_3

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

A Two-Country General Equilibrium Model with Money
gemOLGFinancialInstrument

An Overlapping Generations Model with a Financial Instrument
gemInputOutputTable_8_8

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

The Basic Overlapping Generations Model for an Exchange Economy (see Samuelson, 1958)
gemInputOutputTable_7_4

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

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

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

An Example of Two-Country Economy with Tariff
growth_rate

Compute the Growth Rate
gemInputOutputTable_5_4

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

Intertemporal Utility Function
gemRobinson_3_2

A Robinson Crusoe Economy
gemSecurityPricing

Compute Security Market Equilibria for Some Simple Cases
gemSecurityPricingExample

Some Examples of Security Pricing
gemStandardInputOutputTable_7_4

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

Make a Mean Value Policy Function
makePolicyIncomeTax

Make a Policy of Income Tax
iterate

Iteration Function
gemInputOutputTable_SCES_3_3

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

A Time-Circle Model (Closed Loop Overlapping Generations Model)
policyMeanValue

Mean Value Policy Function
rate_to_beta

Conversion between a Rate Vector and a Beta Vector
gemTwoCountryPureExchange_Bond

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

Plot a Tree and Show the Type Attribute
gemQuasilinearPureExchange_2_2

A Pure Exchange Economy with a Quasilinear Utility Function
gemTwoCountry_Bond_7_4

An Example of Two-Country Economy with Bond
gemInputOutputTable_easy_5_4

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

Make a Policy of Technology Change
node_set

Create a Tree or Set Attributes for a Node
node_print

Print a Tree and Its Fields
node_new

Create a Tree
node_insert

Insert Nodes into a Tree
var.p

Population Variance and Population Standard Deviation
policyMarketClearingPrice

Market-Clearing-Price Policy Function
marginal_utility

Marginal Utility
makePolicyStickyPrice

Make a Policy of Sticky Price
gemMoney_3_2

A General Equilibrium Model with Money
gemTax_5_4

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

Some Examples of Two-Country Pure Exchange Economy
makePolicySupply

Make a Policy of Supply
node_replace

Replace a Node of a Tree
node_prune

Prune Nodes off a Tree by Names
matrix_to_dstl

Convert a Matrix into a Demand Structural Tree List
matrix_add_by_name

Add Matrices by Names of Columns and Rows
sdm_dstl

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

Structural Function
ratio_adjust

Ratio Adjustment
sdm2

Structural Dynamic Model (alias Structural Growth Model) Version 2