knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Working Code Example

library(SolowVariants)
theme_set(theme_bw())

# Setting up the parameter grid ---------------------------------
aux_np <- 200
aux_parameter_grid <-
  create_parameter_grid(
    c("alpha", "beta", "n", "g", "sE", "s", "delta"),
    c(1 / 3, 1 / 3, 0.005, 0.02, 0.15, 0.15, 0.2),
    c(NA, NA, NA, NA, NA, NA, NA),
    c(NA, NA, NA, NA, NA, NA, NA),
    aux_np
  )

# Setting starting values for K and L ---------------------------------
aux_startvalues <- list(A = 1, K = 1, L = 1, R = 1)

# Simulate the basic Solow growth model ---------------------------------
aux_simulation <- SimulateExtendedSolowModelScarceResourceOil(aux_parameter_grid, aux_np, aux_startvalues)

# Visualise some variables ---------------------------------
VisualiseSimulation(aux_simulation,
                    c("YpW", "KpEW", "R"), 
                    "free")

# Economy in SS in the End ---------------------------------
steadystate_checker(aux_simulation, aux_parameter_grid, "ESSRO")

Elaboration

Parameters defining the ESSRO

Remark: Those parameters can be found via the command: getRequiredParams("ESSRO").

Starting value of endogenous variables defining the ESSRO

Remark: Those parameters can be found via the command: getRequiredStartingValues("ESSRO").

Structural Equations to the Extended Solow Growth Model with the Scarce Resource Oil

$$ \begin{aligned} Y_t &= K_t^\alpha * (A_t * L_t)^{(1- \beta)} * E_t^\varepsilon \quad \text{ where } \alpha + \beta + \varepsilon = 1 \ E_t &= s_ER_t\ R_t &= R_{t-1} - E_{t-1}\ K_{t+1} &= s_KY_t + (1-\delta)K_{t} \ L_{t+1}&=(1+n)L_t \ A_{t+1}&=(1+g)A_t \ \end{aligned} $$



SebastianBehrens/SolowVariants documentation built on Oct. 11, 2023, 2:49 p.m.