Skip to content

Commit

Permalink
Update example b/c readtable deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ShlokG committed Feb 9, 2022
1 parent ee8e17c commit a7d8428
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
using DSGE, StateSpaceRoutines
using QuantEcon: solve_discrete_lyapunov
using DataFrames
using DataFrames, CSV

# Setup the model and data

m = AnSchorfheide()
df = readtable("us.txt", header = false, separator = ' ')
#df = readtable("us.txt", header = false, separator = ' ')
df = CSV.read("us.txt", DataFrame; delim=' ', ignorerepeated = true, type=Float64, header = false)
data = convert(Matrix{Float64}, df)'

params = [2.09, 0.98, 2.25, 0.65, 0.34, 3.16, 0.51, 0.81, 0.98, 0.93, 0.19, 0.65, 0.24,
0.115985, 0.294166, 0.447587]
update!(m, params)
DSGE.update!(m, params)

# Solution to a Linear DSGE Model w/ IID Gaussian Errors

Expand Down

2 comments on commit a7d8428

@ShlokG
Copy link
Member Author

@ShlokG ShlokG commented on a7d8428 Feb 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/53133

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.3 -m "<description of version>" a7d8428bdab1ad2a55beaadff31d60fc8bb13ce3
git push origin v0.4.3

Also, note the warning: Version 0.4.3 skips over 0.4.2
This can be safely ignored. However, if you want to fix this you can do so. Call register() again after making the fix. This will update the Pull request.

Please sign in to comment.