# Bruce Hansen's "Econometrics"

**URL:** <https://discourse.julialang.org/t/bruce-hansens-econometrics/104324>\
**Category:** Statistics\
**Created:** [September 27, 2023, 6:25pm UTC](https://discourse.julialang.org/t/bruce-hansens-econometrics/104324 "2023-09-27T18:25:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Soderlind](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paul_soderlind/32/1753_2.png) [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Post date:** [September 27, 2023, 6:25pm UTC](https://discourse.julialang.org/t/bruce-hansens-econometrics/104324/1 "2023-09-27T18:25:59Z")

</div>

looks to be the next standard text for PhD econometrics. It has a number of empirical examples (in R, Stata and matlab), with code and data here: [Bruce Hansen's Econometrics](https://users.ssc.wisc.edu/~bhansen/econometrics/)

It shouldn’t be too hard to port the matlab code to Julia. In case you are interested in contributing, reply here and we might be able to get this done. (And yes, Hansen has said that he is happy to see this done.)

---

<div class="post-metadata">

**Author:** ![mcreel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcreel/32/30088_2.png) [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Post date:** [September 28, 2023, 6:20am UTC](https://discourse.julialang.org/t/bruce-hansens-econometrics/104324/2 "2023-09-28T06:20:42Z")

</div>

I may be interested, if the book compares well to Cameron and Trivedi’s _Microeconometrics_, which is the book I’ve been recommending to students for many years.

---

<div class="post-metadata">

**Author:** ![Paul\_Soderlind](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paul_soderlind/32/1753_2.png) [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Post date:** [October 3, 2023, 7:23pm UTC](https://discourse.julialang.org/t/bruce-hansens-econometrics/104324/3 "2023-10-03T19:23:12Z")

</div>

A short update. There seems to be matlab files for chapters 3,4,8 and 10. I have made crude “translations” of those. Pretty much line for line, with a few small tweaks when crucial (like avoiding some allocations in bootstrap simulations).

That could be a start, at least since it probably mirrors the author’s intended approach. On the other hand, this could be rewritten in a much more Julian way. Maybe that could be round 2. Anyhow, I’ll post what I have soon.

EDIT: Now available in [this repository](https://github.com/PaulSoderlind/JuliaForHansensEconometrics)

---

<div class="post-metadata">

**Author:** ![samerb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/samerb/32/9242_2.png) [@samerb](https://discourse.julialang.org/u/samerb)\
**Post date:** [October 4, 2023, 5:52pm UTC](https://discourse.julialang.org/t/bruce-hansens-econometrics/104324/4 "2023-10-04T17:52:07Z")

</div>

Sounds very useful!

---

<div class="post-metadata">

**Author:** ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Post date:** [October 17, 2023, 12:53pm UTC](https://discourse.julialang.org/t/bruce-hansens-econometrics/104324/5 "2023-10-17T12:53:09Z")

</div>

Bought the book. Nobody warned me about the size. Huge! It took over the title of largest book on my shelf!
