Skip to content

Commit

Permalink
docs: add titles to examples and small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AldoGl committed May 24, 2024
1 parent eeaff01 commit 44ce320
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 3 deletions.
2 changes: 0 additions & 2 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ initial_conditions = BeforeIT.AUSTRIA2010Q1.initial_conditions
T = 20
model = BeforeIT.initialise_model(parameters, initial_conditions, T)
data = BeforeIT.run_one_sim!(model)

plot(data.real_gdp)
```

To plot the results of the simulation, install the `Plots` package via ```Pkg.add("Plots")``` and then run
Expand Down
2 changes: 2 additions & 0 deletions examples/basic_example.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# # Essential use of BeforeIT

# We start by importing the BeforeIT library and other useful libraries.

import BeforeIT as Bit
Expand Down
2 changes: 2 additions & 0 deletions examples/change_expectations.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# # Changing expectations via function overloading

# In this tutorial we will illustrate how to experiment with different expectations of the agents in the model.

import BeforeIT as Bit
Expand Down
2 changes: 1 addition & 1 deletion examples/get_predictions.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# In this tutorial we illustrate how to
# In this tutorial we illustrate how to get predictions from the model for a number of quarters starting from previous simulations.

using BeforeIT, FileIO
using Dates
Expand Down
2 changes: 2 additions & 0 deletions examples/multithreading_speedup.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# # Multithreading speedup for large models

# In this tutorial we illustrate how to make use of multi threading in BeforeIT to allow for faster
# executions of single simulation runs.

Expand Down
2 changes: 2 additions & 0 deletions examples/scenario_analysis_via_overload.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# # Scenario analysis via function overloading

# In this tutorial we will illustrate how to perform a scenario analysis by running the model multiple times
# under a specific shock and comparing the results with the unshocked model.

Expand Down
2 changes: 2 additions & 0 deletions examples/scenario_analysis_via_shock.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# # Scenario analysis via custom shocks

# In this tutorial we will illustrate how to perform a scenario analysis by running the model multiple times
# under a specific shock and comparing the results with the unshocked model.

Expand Down

0 comments on commit 44ce320

Please sign in to comment.