Package: GE 0.4.5

LI Wu

GE: General Equilibrium Modeling

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 <https://www.nse.pku.edu.cn/> 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 J. von Neumann (1945, A Model of General Economic Equilibrium. The Review of Economic Studies, 13. pp. 1-9), J. G. Kemeny, 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.

Authors:LI Wu <[email protected]>

GE_0.4.5.tar.gz
GE_0.4.5.tar.gz(r-4.5-noble)GE_0.4.5.tar.gz(r-4.4-noble)
GE_0.4.5.tgz(r-4.4-emscripten)GE_0.4.5.tgz(r-4.3-emscripten)
GE.pdf |GE.html
GE/json (API)

# Install 'GE' in R:
install.packages('GE', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

172 exports 1 stars 6.19 score 68 dependencies 401 mentions 558 downloads

Last updated 3 months agofrom:e4c2f2c039. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 04 2024
R-4.5-linuxOKSep 04 2024

Exports:AMSDAMSDPAMVapply_expand.gridbeta_to_rateCARACESCESAK_dcCRRADCESDCES_compensated_demandDCES_demandDCES_indirectdemand_coefficientdemCreditPolicydemInsufficientEffectiveDemand_3_3ge_tidygem_2_2gem_3_2gem_3_3gem_3_4gem_4_4gemAssetExchange_MatthewEffect_2_2gemAssetPricing_CUFgemAssetPricing_PUFgemAssetPricingExamplegemBalancedGrowthPathgemCanonicalDynamicMacroeconomic_3_2gemCanonicalDynamicMacroeconomic_4_3gemCanonicalDynamicMacroeconomic_Sequential_3_2gemCanonicalDynamicMacroeconomic_Sequential_WagePostpayment_4_3gemCanonicalDynamicMacroeconomic_TimeCircle_2_2gemCanonicalDynamicMacroeconomic_Timeline_2_2gemCapitalAccumulationgemCESAK_Timeline_2_2gemCoffeeProblem_3_3gemConstantGrowthPath_TechnologyProgress_3_3gemDCES_5_3gemDualLinearProgramminggemEquityShare_3_3gemEquityShare_Bond_4_4gemExogenousPricegemExogenousPrice_EndogenousLaborSupply_3_3gemExogenousUtilityLevel_EndogenousLaborSupply_3_3gemExternality_NegativegemExternality_PositivegemFirmAsConsumergemHeterogeneousFirms_2_3gemInformation_ProductQualitygemInputOutputTable_2_2gemInputOutputTable_2_7_2gemInputOutputTable_2_7_4gemInputOutputTable_2_8_4gemInputOutputTable_5_4gemInputOutputTable_5_5gemInputOutputTable_7_4gemInputOutputTable_8_8gemInputOutputTable_easy_5_4gemInputOutputTable_Leontief_3_3gemInputOutputTable_SCES_3_3gemInstantaneousEquilibriumPath_StickyDecisionsgemIntertemporal_1_2gemIntertemporal_2_2gemIntertemporal_3_3gemIntertemporal_3_4gemIntertemporal_4_4gemIntertemporal_5_5gemIntertemporal_AdValoremClaimgemIntertemporal_Bank_1_2gemIntertemporal_Bank_1_3gemIntertemporal_DividendgemIntertemporal_Dividend_TechnologicalProgressgemIntertemporal_EndogenousEquilibriumInterestRategemIntertemporal_EndogenousEquilibriumInterestRate_ForeignExchangeRategemIntertemporal_EndogenousEquilibriumInterestRate_MoneyVelocitygemIntertemporal_Money_Dividend_Example7.5.1gemIntertemporal_PublicFirmgemIntertemporal_TimeCircle_2_2gemIntertemporal_TimeCircle_3_3gemIntertemporal_TimeCircle_3_4gemIntertemporal_TimeCircle_Bank_1_2gemIntertemporal_TimeCircle_Stochastic_2_2gemIntertemporalStochastic_Bank_ThreePeriodsgemIntertemporalStochastic_Bank_TwoPeriodsgemIntertemporalStochastic_ThreePeriods_2_2gemIntertemporalStochastic_TwoPeriodsgemLand_LaborgemLand_Labor_Capital_4_3gemMarketClearingPath_2_2gemMoney_3_2gemMoney_3_3gemNonexcludabilitygemNonrivalry_CongestiblitygemNonrivalry_UncongestiblitygemOLG_BasicgemOLG_Land_4_3gemOLG_PrivateFirmgemOLG_PublicFirmgemOLG_PureExchangegemOLG_PureExchange_BankgemOLG_StochasticSequential_3_3gemOLG_TimeCirclegemOLGF_OneFirmgemOLGF_PureExchangegemOLGF_TwoFirmsgemOpenEconomy_4_4gemOpenEconomy_6_6gemPersistentTechnologicalProgressgemPureExchangegemQuasilinearPureExchange_2_2gemResearchDevelopmentIntensitygemRobinson_3_2gemShortTermInvestment_2_3gemSkillgemstEndogenousLaborSupply_2_2gemstEndogenousProductionFunction_2_2gemstEndogenousUtilityFunctiongemStickyDecisionPath_2_2gemStickyPricePath_2_2gemstStructuralMultipleEquilibria_2_2gemTax_3_3gemTax_4_4gemTax_5_4gemTax_5_5gemTax_QuasilinearPreference_4_4gemTax_VAT_IncomeTax_5_4gemTechnologyProgress_PopulationGrowthgemTemporaryEquilibriumPathgemTwoCountry_Bond_7_4gemTwoCountry_RealExchangeRateIndex_7_4gemTwoCountry_Tariff_9_5gemTwoCountryForeignExchangeRate_6_6gemTwoCountryPureExchangegemTwoCountryPureExchange_BondgemTwoIndustries_4_3growth_rateiteratemakeCountercyclicalProductTaxmakePolicyHeadAdjustmentmakePolicyHeadTailAdjustmentmakePolicyIncomeTaxmakePolicyMeanValuemakePolicyStickyPricemakePolicySupplymakePolicyTailAdjustmentmakePolicyTechnologyChangemarginal_utilitymatrix_add_by_namematrix_aggregatematrix_to_dstlMDCES_demandnode_insertnode_newnode_plotnode_printnode_prunenode_replacenode_setoutputpolicyMarketClearingPricepolicyMeanValueQL_demandrate_to_betaratio_adjustSCESSCES_Asd.psdm_dstlsdm2sserrstructural_functionvar.p

Dependencies:base64encbitbit64bslibcachemCGEclicliprcolorspacecpp11crayondata.treeDiagrammeRdigestdplyrevaluatefansifarverfastmapfontawesomefsgenericsgluehighrhmshtmltoolshtmlwidgetsigraphjquerylibjsonliteknitrlabelinglatticelifecyclemagrittrMatrixmemoisemimemunsellpillarpkgconfigprettyunitsprogresspurrrR6rappdirsRColorBrewerreadrrlangrmarkdownrstudioapisassscalesstringistringrtibbletidyrtidyselecttinytextzdbutf8vctrsviridisLitevisNetworkvroomwithrxfunyaml

Readme and manuals

Help Manual

Help pageTopics
Additive-Mean-Variance Utility Function and Additive-Mean-Standard-Deviation Utility FunctionAMSD AMV
Additive-Mean-Standard-Deviation Portfolio Utility FunctionAMSDP
Applying a Function to All Combinations of the Supplied Vectorsapply_expand.grid
Constant Absolute Risk Aversion (CARA) Utility FunctionCARA
CES FunctionCES
Demand coefficients of the CESAK Production FunctionCESAK_dc
Constant Relative Risk Aversion (CRRA) Utility FunctionCRRA
Displaced CES Utility Function and Displaced CES Demand FunctionDCES DCES_compensated_demand DCES_demand DCES_indirect
Compute Demand Coefficients of an Agent with a Demand Structural Treedemand_coefficient
A Disequilibrium Model with CreditdemCreditPolicy
A Disequilibrium Model Illustrating Insufficient Effective Demand (Supply-demand Structural Mismatch)demInsufficientEffectiveDemand_3_3
Tidy a General Equilibriumge_tidy
Some Simple 2-by-2 General Equilibrium Modelsgem_2_2
Some Simple 3-by-2 General Equilibrium Modelsgem_3_2
Some Simple 3-by-3 General Equilibrium Modelsgem_3_3
Some Simple 3-by-4 General Equilibrium Modelsgem_3_4
Some Simple 4-by-4 General Equilibrium Modelsgem_4_4
An Example Illustrating the Matthew Effect of Asset ExchangegemAssetExchange_MatthewEffect_2_2
Compute Asset Market Equilibria with Commodity Utility Functions for Some Simple CasesgemAssetPricing_CUF
Compute Asset Market Equilibria with Portfolio Utility Functions for Some Simple CasesgemAssetPricing_PUF
Some Examples of Asset PricinggemAssetPricingExample
Some Examples of Balanced Growth PathsgemBalancedGrowthPath
A Canonical Dynamic Macroeconomic General Equilibrium Model (see Torres, 2016)gemCanonicalDynamicMacroeconomic_3_2
A Canonical Dynamic Macroeconomic General Equilibrium Model (see Torres, 2016)gemCanonicalDynamicMacroeconomic_4_3
A Canonical Dynamic Macroeconomic General Equilibrium Model in Sequential Form (see Torres, 2016)gemCanonicalDynamicMacroeconomic_Sequential_3_2
A Canonical Dynamic Macroeconomic General Equilibrium Model in Sequential Form under the Wage Postpayment Assumption (see Torres, 2016)gemCanonicalDynamicMacroeconomic_Sequential_WagePostpayment_4_3
A Canonical Dynamic Macroeconomic General Equilibrium Model in Time-circle Form (see Torres, 2016)gemCanonicalDynamicMacroeconomic_TimeCircle_2_2
A Canonical Dynamic Macroeconomic General Equilibrium Model in Timeline Form (see Torres, 2016)gemCanonicalDynamicMacroeconomic_Timeline_2_2
Some Examples of Spot Market Clearing Paths with Capital AccumulationgemCapitalAccumulation
Some Timeline Equilibrium Models with CESAK Production FunctiongemCESAK_Timeline_2_2
Coffee Problem: Some Examples of Equilibrium and Disequilibrium Pure Exchange EconomiesgemCoffeeProblem_3_3
Constant Growth Paths with Technology ProgressgemConstantGrowthPath_TechnologyProgress_3_3
A Model with a Displaced CES Utility FunctiongemDCES_5_3
General Equilibrium Models and Linear Programming Problems (see Winston, 2003)gemDualLinearProgramming
A General Equilibrium Model with Equity SharesgemEquityShare_3_3
A General Equilibrium Model with Equity Shares and BondgemEquityShare_Bond_4_4
Some Examples with Exogenous Price (Price Control)gemExogenousPrice
An Example of Price Regulation and Endogenous Labor Supply (Example 9.5 of Li, 2019)gemExogenousPrice_EndogenousLaborSupply_3_3
Some Examples with Exogenous Utility Level and Endogenous Labor SupplygemExogenousUtilityLevel_EndogenousLaborSupply_3_3
Some Examples Illustrating Negative ExternalitygemExternality_Negative
Some Examples Illustrating Positive ExternalitygemExternality_Positive
Some Examples of Treating Firms as Consumer-Type AgentsgemFirmAsConsumer
Instantaneous equilibrium paths with Heterogeneous FirmsgemHeterogeneousFirms_2_3
An Example Illustrating Product Quality InformationgemInformation_ProductQuality
A General Equilibrium Model based on a 2×2 (Unbalanced) Input-Output TablegemInputOutputTable_2_2
A Two-Country General Equilibrium ModelgemInputOutputTable_2_7_2
A Two-Country General Equilibrium ModelgemInputOutputTable_2_7_4
A Two-Country General Equilibrium Model with MoneygemInputOutputTable_2_8_4
A General Equilibrium Model based on a 5×4 Input-Output Table (see Zhang Xin, 2017, Table 8.6.1)gemInputOutputTable_5_4
General Equilibrium Models based on a 5×5 Input-Output Table (see Zhang Xin, 2017, Table 3.2.1)gemInputOutputTable_5_5
A General Equilibrium Model based on a 7×4 (Standard) Input-Output TablegemInputOutputTable_7_4
A General Equilibrium Model based on an 8×8 Input-Output TablegemInputOutputTable_8_8
An Easy General Equilibrium Model based on a 5×4 Input-Output Table (see Zhang Xin, 2017, Table 8.6.1)gemInputOutputTable_easy_5_4
A Leontief-type General Equilibrium Model based on a 3×3 Input-Output TablegemInputOutputTable_Leontief_3_3
A SCES-type General Equilibrium Model based on an Input-Output Table.gemInputOutputTable_SCES_3_3
Some Examples of Instantaneous Equilibrium Paths with Sticky DecisionsgemInstantaneousEquilibriumPath_StickyDecisions
An Example of a 1-by-2 Intertemporal Equilibrium ModelgemIntertemporal_1_2
Some Examples of a 2-by-2 Intertemporal Equilibrium ModelgemIntertemporal_2_2
Some Examples of Intertemporal Models with One Consumer and Two Types of FirmsgemIntertemporal_3_3
An Intertemporal Model with Two Consumers and Two Types of FirmsgemIntertemporal_3_4
An Intertemporal Model with Land, Two Consumers and Two Types of FirmsgemIntertemporal_4_4
Some Intertemporal (Timeline and Time-circle) Models with Land, Two Consumers, and Three Types of FirmsgemIntertemporal_5_5
Some Intertemporal Models with Ad Valorem ClaimgemIntertemporal_AdValoremClaim
Some Examples of an Intertemporal Model with a Consumer and a Type of BankgemIntertemporal_Bank_1_2
Some Examples of an Intertemporal Model with Two Consumers and a Type of BankgemIntertemporal_Bank_1_3
The Identical Steady-state Equilibrium: Four Models Illustrating DividendgemIntertemporal_Dividend
The Identical Steady-state Equilibrium: Four Models Illustrating Dividend and Technological ProgressgemIntertemporal_Dividend_TechnologicalProgress
An Example Illustrating Endogenous Equilibrium Interest Rates in a (Timeline) Transitional Equilibrium PathgemIntertemporal_EndogenousEquilibriumInterestRate
An Example Illustrating Endogenous Equilibrium Interest Rates and Foreign Exchange Rates in a Two-country (Timeline) Transitional Equilibrium PathgemIntertemporal_EndogenousEquilibriumInterestRate_ForeignExchangeRate
An Example Illustrating Endogenous Equilibrium Interest Rates and the Velocity of Money in a (Timeline) Transitional Equilibrium PathgemIntertemporal_EndogenousEquilibriumInterestRate_MoneyVelocity
The Identical Steady-state Equilibrium: Three Models with Money and DividendgemIntertemporal_Money_Dividend_Example7.5.1
Some Examples of Intertemporal (Timeline) Models with Production and Public FirmsgemIntertemporal_PublicFirm
Some Examples of a 2-by-2 Time Circle Equilibrium ModelgemIntertemporal_TimeCircle_2_2
A Time Circle Model with One Consumer and Two Types of FirmsgemIntertemporal_TimeCircle_3_3
A Time Circle Model with Two Consumers and Two Types of FirmsgemIntertemporal_TimeCircle_3_4
Some Examples of a Time Circle Model with a Consumer and a Type of BankgemIntertemporal_TimeCircle_Bank_1_2
Some 2-by-2 Time Circle Models with UncertaintygemIntertemporal_TimeCircle_Stochastic_2_2
An Intertemporal Stochastic Model with a Consumer and Some BanksgemIntertemporalStochastic_Bank_ThreePeriods
An Intertemporal Stochastic Model with a Consumer and a BankgemIntertemporalStochastic_Bank_TwoPeriods
A Three-Period Intertemporal Stochastic Equilibrium Model with a Consumer and a Type of FirmgemIntertemporalStochastic_ThreePeriods_2_2
Some Examples of a Two-Period Intertemporal Stochastic Equilibrium ModelgemIntertemporalStochastic_TwoPeriods
Some Examples of Spot Market Clearing Paths Involving Land and LaborgemLand_Labor
Some Examples of Spot Market Clearing Paths Involving Land, Labor and CapitalgemLand_Labor_Capital_4_3
Some Examples of Spot Market Clearing PathsgemMarketClearingPath_2_2
A General Equilibrium Model with MoneygemMoney_3_2
Some 3-by-3 General Equilibrium Models with Money and Exogenous Interest RategemMoney_3_3
Some Examples Illustrating Non-excludabilitygemNonexcludability
Some Examples Illustrating Congestible Non-rival GoodsgemNonrivalry_Congestiblity
Some Examples Illustrating Uncongestible Non-rival GoodsgemNonrivalry_Uncongestiblity
Some Examples of Basic (Timeline) OLG Models with ProductiongemOLG_Basic
An Overlapping Generations Model with LandgemOLG_Land_4_3
Overlapping Generations Models with Private FirmgemOLG_PrivateFirm
Some Examples of (Timeline) OLG Models with Production and Public FirmsgemOLG_PublicFirm
The Basic Overlapping Generations Pure Exchange Model (see Samuelson, 1958)gemOLG_PureExchange
Overlapping Generations Pure Exchange Models with BankgemOLG_PureExchange_Bank
A 3-by-3 OLG Stochastic Sequential General Equilibrium ModelgemOLG_StochasticSequential_3_3
Time-Circle Models (Closed Loop Overlapping Generations Models)gemOLG_TimeCircle
Overlapping Generations Financial Sequential Models with One FirmgemOLGF_OneFirm
Overlapping Generations Financial Sequential Models for Pure Exchange EconomiesgemOLGF_PureExchange
Overlapping Generations Financial Sequential Models with Two FirmsgemOLGF_TwoFirms
A 4-by-4 Open Economy with BondgemOpenEconomy_4_4
A 6-by-6 Open Economy with BondgemOpenEconomy_6_6
Some Examples of Spot Market Clearing Paths with Persistent Technological ProgressgemPersistentTechnologicalProgress
Some Simple Pure Exchange Equilibrium ModelsgemPureExchange
A Pure Exchange Economy with a Quasilinear Utility FunctiongemQuasilinearPureExchange_2_2
Some Examples of Spot Market Clearing Paths Illustrating Research and Development IntensitygemResearchDevelopmentIntensity
A Robinson Crusoe EconomygemRobinson_3_2
Some Examples Illustrating Short-Term InvestmentgemShortTermInvestment_2_3
Some General Equilibrium Models with Skill (i.e. Human Capital)gemSkill
A General Equilibrium Model with Endogenous Labor SupplygemstEndogenousLaborSupply_2_2
A General Equilibrium Model with Endogenous Production FunctiongemstEndogenousProductionFunction_2_2
Some General Equilibrium Models with Endogenous Utility FunctiongemstEndogenousUtilityFunction
An Example Illustrating the Sticky-Decision Path and Business CyclesgemStickyDecisionPath_2_2
Some Examples Illustrating the Sticky-Price Path and Business CyclesgemStickyPricePath_2_2
Structural Multiple Equilibria and Structural Transition PolicygemstStructuralMultipleEquilibria_2_2
Some General Equilibrium Models with TaxgemTax_3_3
Some General Equilibrium Models with Endogenous Tax RatesgemTax_4_4
A General Equilibrium Model with Tax (see Cardenete et al., 2012).gemTax_5_4
A General Equilibrium Model with TaxgemTax_5_5
A General Equilibrium Model with Tax and Quasilinear Utility Functions.gemTax_QuasilinearPreference_4_4
A General Equilibrium Model with Value-added Tax and Income TaxgemTax_VAT_IncomeTax_5_4
Some General Equilibrium Models with Technology Progress and Population GrowthgemTechnologyProgress_PopulationGrowth
Some Examples of Temporary Equilibrium PathsgemTemporaryEquilibriumPath
An Example of Two-Country Economy with BondgemTwoCountry_Bond_7_4
Calculating Real Exchange Rate IndexgemTwoCountry_RealExchangeRateIndex_7_4
An Example of Two-Country Economy with TariffgemTwoCountry_Tariff_9_5
Example 7.6 (Foreign Exchange Rate) in Li (2019)gemTwoCountryForeignExchangeRate_6_6
Some Examples of Two-Country Pure Exchange EconomygemTwoCountryPureExchange
Some Examples of Two-Country Pure Exchange Economy with BondgemTwoCountryPureExchange_Bond
A 4-by-3 Economy with Two IndustriesgemTwoIndustries_4_3
Compute the Growth Rategrowth_rate
Iteration Functioniterate
Make a Countercyclical Product Tax Policy FunctionmakeCountercyclicalProductTax
Make a Policy of Head Adjustment for a Timeline ModelmakePolicyHeadAdjustment
Make a Policy of Head and/or Tail Adjustment for a Timeline ModelmakePolicyHeadTailAdjustment
Make a Policy of Income TaxmakePolicyIncomeTax
Make a Mean Value Policy FunctionmakePolicyMeanValue
Make a Policy of Sticky PricemakePolicyStickyPrice
Make a Policy of SupplymakePolicySupply
Make a Policy of Tail Adjustment for a Timeline ModelmakePolicyTailAdjustment
Make a Policy of Technology ChangemakePolicyTechnologyChange
Marginal Utilitymarginal_utility
Add Matrices by Names of Columns and Rowsmatrix_add_by_name
Aggregate Some Rows and Columns of a Matrixmatrix_aggregate
Convert a Matrix into a Demand Structural Tree Listmatrix_to_dstl
Modified Displaced CES Demand FunctionMDCES_demand
Insert Nodes into a Treenode_insert
Create a Treenode_new
Plot a Tree and Show the Type Attributenode_plot
Print a Tree and Its Fieldsnode_print
Prune Nodes off a Tree by Namesnode_prune
Replace a Node of a Treenode_replace
Create a Tree or Set Attributes for a Nodenode_set
Compute the Utility of a Consumer or the Output of a Firm by the Demand Structural Treeoutput
Market-Clearing-Price Policy FunctionpolicyMarketClearingPrice
Mean Value Policy FunctionpolicyMeanValue
Quasilinear Demand FunctionsQL_demand
Conversion between a Rate Vector and a Beta Vectorbeta_to_rate rate_to_beta
Ratio Adjustmentratio_adjust
Standard CES FunctionSCES
Standard CES Demand Coefficient MatrixSCES_A
Structural Dynamic Model (alias Structural Growth Model) with a Demand Structure Tree Listsdm_dstl
Structural Dynamic Model (alias Structural Growth Model) Version 2sdm2
Compute the Return Rate in the Steady State Equilibriumsserr
Structural Functionstructural_function
Population Variance and Population Standard Deviationsd.p var.p