Skip to content

Commit 865d1be

Browse files
authored
Update README.md
1 parent 94a8b78 commit 865d1be

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

Diff for: README.md

+15-5
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Then, whithin the Julia environment, you can install BeforeIT.jl as
4444

4545
```julia
4646
using Pkg
47-
Pkg.add(url="[email protected]:bancaditalia/BeforeIT.jl.git")
47+
Pkg.add("BeforeIT")
4848
```
4949

5050
You can ensure to have installed all dependencies via
@@ -55,21 +55,31 @@ Pkg.instantiate()
5555

5656
Now you should be able to run the the following code
5757

58-
5958
```julia
60-
using BeforeIT, Plots
59+
using BeforeIT
6160

6261
parameters = BeforeIT.AUSTRIA2010Q1.parameters
6362
initial_conditions = BeforeIT.AUSTRIA2010Q1.initial_conditions
6463

6564
T = 20
6665
model = BeforeIT.initialise_model(parameters, initial_conditions, T)
6766
data = BeforeIT.run_one_sim!(model)
67+
```
6868

69-
plot(data.real_gdp)
69+
This will simulate the model with the original Austrian parametrisation for 20 quarters and save the results in the `data` object.
70+
To plot the time series within the `data` object, make sure you install Plots.jl in the same environment using
71+
72+
```julia
73+
Pkg.add("Plots")
7074
```
7175

72-
This will simulate the model with the original Austrian parametrisation for 20 quarters.
76+
and then try running
77+
78+
```julia
79+
using Plots
80+
81+
plot(data.real_gdp)
82+
```
7383

7484
In you want to run the script without opening a REPL, you can copy and paste the above lines into a file,
7585
say `main.jl`, and run it directly from the terminal by typing

0 commit comments

Comments
 (0)