{"id":2551,"date":"2021-02-24T13:08:29","date_gmt":"2021-02-24T13:08:29","guid":{"rendered":"http:\/\/blogs.kent.ac.uk\/economics\/?p=2551"},"modified":"2021-03-02T15:43:30","modified_gmt":"2021-03-02T15:43:30","slug":"data-diagrams-and-de-bugging","status":"publish","type":"post","link":"https:\/\/blogs.kent.ac.uk\/economics\/2021\/02\/24\/data-diagrams-and-de-bugging\/","title":{"rendered":"Data, diagrams and de-bugging."},"content":{"rendered":"<p><span data-contrast=\"auto\">I have found that one of the most rewarding parts of studying Economics has been learning to problem solve. It\u2019s all well and good learning\u00a0<\/span><span data-contrast=\"auto\">e<\/span><span data-contrast=\"auto\">conomic theories and drawing fancy diagrams, but if you can\u2019t figure out things yourself, then where is the sense of achievement? Learning to code empowers you to find out new things, explore what interests you, and stretch yourself.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Whether this is Stata, R, Python, or Julia, I would highly recommend that you learn one of them. Stata is fantastic for simple Econometric analysis and is user-friendly. R takes longer to get started with but is much more powerful and flexible<\/span><span data-contrast=\"auto\">, with some great capabilities for data analysis<\/span><span data-contrast=\"auto\">. Python is more for simulations and general data analysis, albeit with some packages for Econometric analysis (<\/span><span data-contrast=\"auto\">statsmodels<\/span><span data-contrast=\"auto\">).<\/span><span data-contrast=\"auto\">\u00a0Finally,<\/span><span data-contrast=\"auto\">\u00a0Julia is\u00a0<\/span><span data-contrast=\"auto\">similar to Python, but\u00a0<\/span><span data-contrast=\"auto\">useful for Financial Economics<\/span><span data-contrast=\"auto\">\u00a0(<\/span><span data-contrast=\"auto\">although I\u2019ve not explored it much<\/span><span data-contrast=\"auto\">!)<\/span><span data-contrast=\"auto\">.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">The<\/span><span data-contrast=\"auto\">\u00a0basics are documented online well and\u00a0<\/span><span data-contrast=\"auto\">YouTube tutorials will take you only a couple of hours to get setup (e.g.\u00a0<\/span><a href=\"https:\/\/www.youtube.com\/c\/TheJuliaLanguage\"><span data-contrast=\"none\">https:\/\/www.youtube.com\/c\/TheJuliaLanguage<\/span><\/a><span data-contrast=\"auto\">), with other online resources to teach the basics\u00a0 (<\/span><a href=\"https:\/\/www.w3schools.com\/python\/python_intro.asp\"><span data-contrast=\"none\">https:\/\/www.w3schools.com\/python\/python_intro.asp<\/span><\/a><span data-contrast=\"auto\">).<\/span><span data-contrast=\"auto\">\u00a0I have also begun posting the basics\u00a0<\/span><span data-contrast=\"auto\">of\u00a0<\/span><span data-contrast=\"auto\">Python\u00a0<\/span><span data-contrast=\"auto\">on my website<\/span><span data-contrast=\"auto\">, with more to follow soon<\/span><span data-contrast=\"auto\">:\u00a0<\/span><a href=\"https:\/\/joelpointon.com\/2021\/02\/24\/introduction-to-python-and-economics\/\"><span data-contrast=\"none\">https:\/\/joelpointon.com\/2021\/02\/24\/introduction-to-python-and-economics\/<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><strong>But once you get started, overcoming errors and bugs requires experience. That\u2019s where\u00a0Kenometrics\u00a0steps in. The Economics department hosts a 2-hour session every Friday at 4 (during term-time) where experienced PhD students dedicate their time to help students with their issues. Usually it is in-person, but this year it has been hosted on Teams.\u00a0<\/strong><\/p>\n<p><span data-contrast=\"auto\">Being able to screenshare code and ask Guillermo to cast his eyes over my work has been amazingly helpful. He knows about time-saving functions that I have never even heard of! It is this kind of experience that googling can\u2019t really compete with. Sometimes you need someone to get \u2018stuck-in\u2019 with the nuances of your code and help guide you to a solution.\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">The best way to learn is by trying and making mistakes. Even today I\u2019ve spent around 3-4 hours trying to debug issues with my time series Econometrics, it can be tedious, but once it works, it is so rewarding. Then, once you get started on one language, you can easily pickup another language. If you can play the guitar then you will be able to pick up a bass with relative ease.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">If you\u2019re not sure what to code, then there are great starter\u00a0<\/span><span data-contrast=\"auto\">projects online. Alternatively, if you see something done in Excel or similar, try to replicate it with one of the above programming languages. Last week I created this graph to replicate E-Views, because I wanted to use Stata to run my Time-Series Econometrics.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><a href=\"http:\/\/blogs.kent.ac.uk\/economics\/files\/2021\/02\/MicrosoftTeams-image-2.jpg\"><img loading=\"lazy\" class=\"size-full wp-image-2555 aligncenter\" src=\"http:\/\/blogs.kent.ac.uk\/economics\/files\/2021\/02\/MicrosoftTeams-image-2.jpg\" alt=\"\" width=\"528\" height=\"384\" \/><\/a><\/p>\n<p><span data-contrast=\"auto\">So, get started with the basics, try to run some code, and then head to\u00a0<\/span><span data-contrast=\"auto\">Kenometrics<\/span><span data-contrast=\"auto\">\u00a0to get the support of <a href=\"https:\/\/www.kent.ac.uk\/economics\/people\/2734\/cabanillas-jimenez-guillermo\">Guillermo<\/a>, <a href=\"https:\/\/www.kent.ac.uk\/economics\/people\/3001\/www.kent.ac.uk\/economics\/people\/3001\/talbi-yasmine\">Yasmine<\/a>, and others!<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p style=\"text-align: center\"><strong>All details about Kenometrics can be found <a href=\"https:\/\/moodle.kent.ac.uk\/2020\/course\/view.php?id=211\">here <\/a>-a centralized hub for recommended online resources and a yearlong support in the use of Econometrics software (Stata, Eviews, R and a little bit of Julia).\u00a0\u00a0<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have found that one of the most rewarding parts of studying Economics has been learning to problem solve. It\u2019s all well and good learning\u00a0economic &hellip; <a href=\"https:\/\/blogs.kent.ac.uk\/economics\/2021\/02\/24\/data-diagrams-and-de-bugging\/\">Read&nbsp;more<\/a><\/p>\n","protected":false},"author":66395,"featured_media":2605,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[53,1],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.kent.ac.uk\/economics\/wp-json\/wp\/v2\/posts\/2551"}],"collection":[{"href":"https:\/\/blogs.kent.ac.uk\/economics\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.kent.ac.uk\/economics\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/economics\/wp-json\/wp\/v2\/users\/66395"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/economics\/wp-json\/wp\/v2\/comments?post=2551"}],"version-history":[{"count":6,"href":"https:\/\/blogs.kent.ac.uk\/economics\/wp-json\/wp\/v2\/posts\/2551\/revisions"}],"predecessor-version":[{"id":2606,"href":"https:\/\/blogs.kent.ac.uk\/economics\/wp-json\/wp\/v2\/posts\/2551\/revisions\/2606"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/economics\/wp-json\/wp\/v2\/media\/2605"}],"wp:attachment":[{"href":"https:\/\/blogs.kent.ac.uk\/economics\/wp-json\/wp\/v2\/media?parent=2551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/economics\/wp-json\/wp\/v2\/categories?post=2551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/economics\/wp-json\/wp\/v2\/tags?post=2551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}