steadystate_checker: Check correctness by comparing simulated (endo.) variables to...

View source: R/HelperFunctions.R

steadystate_checkerR Documentation

Check correctness by comparing simulated (endo.) variables to their steady state values

Description

Compare variables in the final period of the simulation to their respective steady state value (given the exo. paramters).

Usage

steadystate_checker(sim_data, parameter_grid, solow_variant)

Arguments

sim_data

The tibble that is being filled in the simulation function, e.g. SimulateBasicSolowModel().

parameter_grid

The output from create_parameter_grid(...).

solow_variant

String indicating the model, such as "BS" or "ESHC".

Details

This function presumes that the number of periods simulated were such that the final values are near steady state. If the steady state path is disrupted by a parameter change in the second to last period, this function will yield misleading results.

Note

The column "Economy in SS" is evaluated as TRUE when the simulated value is within a .1% interval around the steady state value for reason of computational inacurracy.


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