{"id":111,"date":"2015-02-02T17:03:30","date_gmt":"2015-02-02T17:03:30","guid":{"rendered":"https:\/\/blogs.ncl.ac.uk\/healtheconomicsgroup\/?p=111"},"modified":"2015-02-02T17:03:30","modified_gmt":"2015-02-02T17:03:30","slug":"we-need-to-talk-about-coding-getting-started-with-r","status":"publish","type":"post","link":"https:\/\/blogs.ncl.ac.uk\/healtheconomicsgroup\/2015\/02\/02\/we-need-to-talk-about-coding-getting-started-with-r\/","title":{"rendered":"We need to talk about coding: getting started with R"},"content":{"rendered":"<p><b>B<a href=\"http:\/\/www.ncl.ac.uk\/ihs\/people\/profile\/jenni.hislop\">y Jenni Hislop<\/a><\/b><\/p>\n<p>We keep it a secret from undergraduates and Masters degree students. But sooner or later the truth must be told: point and click software will only get you so far, so if you really want to be a good health economist, eventually you\u2019re going to have to learn how to code. Yes, yes I know that if you\u2019d wanted to do programming you\u2019d have just studied computing science and not economics. But life is hard, and the further up the health economics research ladder you venture, the harder it becomes to build and run the kind of models you need to be able to simulate real world healthcare practices, without needing to know a little bit of code.<\/p>\n<p>But having decided that I just want to have a single environment where I can accomplish all my statistical needs, the next question is which to choose? Many people (including several within our own Health Economics Group) certainly <a href=\"http:\/\/www.stata.com\/giftshop\/\">appreciate Stata<\/a>. However, University managers certainly appreciate things that are free; enter R. Both a so called environment for doing statistical computing and the programming language of that environment, it\u2019s a <a href=\"https:\/\/gnu.org\/\">GNU project<\/a>, which basically means it\u2019s part of some <a href=\"http:\/\/www.fsf.org\/\">global conspiracy to try and make the world a better place<\/a>, or something. Which helps explain the whole thing about it being free and subsequently why it\u2019s becoming more and more widely used.<\/p>\n<p>But there\u2019s still a sufficiently steep learning curve that might deter the statistically-minded but as yet uninitiated in R. Luckily, the University here at Newcastle runs a series of <a href=\"http:\/\/www.ncl.ac.uk\/maths\/rcourse\/\">R courses<\/a> to help folk like me get over some of that initial trepidation, so last month I enrolled for a week\u2019s worth of training in all things R.<\/p>\n<p>These courses are open to anyone, not just University employees and though courses 1, 2, 3, 5 and 6 are taught over the course of a week, they are done in the form of stand-alone, single day courses so that attendees with some prior understanding of coding and\/or R can opt-in or out depending on what is being taught that day, thereby allowing attendees to tailor their training according to their own specific needs. The teaching format is a good mix of lectures and practical sessions, which effectively enables attendees to check that they definitely understand what\u2019s being said in order to be able to apply it when it comes to sitting down in front of <a href=\"http:\/\/www.rstudio.com\/\">R Studio<\/a> and getting on with it. <a href=\"http:\/\/www.mas.ncl.ac.uk\/~ncsg3\/\">Dr Gillespie<\/a> and his team are also incredibly approachable (even when your error messages are down to you putting a comma in the wrong place for the <i>n<\/i>th time that day). And because not everything can be covered in a week, and also because if there\u2019s one thing scarier than starting an R course, it\u2019s finishing it and realising you\u2019re on your own from now on, there is also some time devoted during Course Three to identifying useful sources of online help.<\/p>\n<p>This course will not suddenly make you an R genius or stop you from ever putting another comma in the wrong place and getting an error message. But in the space of a week it does provide a very good overview of R and its potential capabilities to you as a user, and helps de-mystify R to such an extent that getting started with using it as your default statistical software is no longer a daunting prospect, and that in itself is something of an achievement<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By Jenni Hislop We keep it a secret from undergraduates and Masters degree students. But sooner or later the truth must be told: point and click software will only get you so far, so if you really want to be a good health economist, eventually you\u2019re going to have to learn how to code. Yes, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blogs.ncl.ac.uk\/healtheconomicsgroup\/2015\/02\/02\/we-need-to-talk-about-coding-getting-started-with-r\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;We need to talk about coding: getting started with R&#8221;<\/span><\/a><\/p>\n","protected":false},"author":5599,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-111","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.ncl.ac.uk\/healtheconomicsgroup\/wp-json\/wp\/v2\/posts\/111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ncl.ac.uk\/healtheconomicsgroup\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ncl.ac.uk\/healtheconomicsgroup\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ncl.ac.uk\/healtheconomicsgroup\/wp-json\/wp\/v2\/users\/5599"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ncl.ac.uk\/healtheconomicsgroup\/wp-json\/wp\/v2\/comments?post=111"}],"version-history":[{"count":1,"href":"https:\/\/blogs.ncl.ac.uk\/healtheconomicsgroup\/wp-json\/wp\/v2\/posts\/111\/revisions"}],"predecessor-version":[{"id":112,"href":"https:\/\/blogs.ncl.ac.uk\/healtheconomicsgroup\/wp-json\/wp\/v2\/posts\/111\/revisions\/112"}],"wp:attachment":[{"href":"https:\/\/blogs.ncl.ac.uk\/healtheconomicsgroup\/wp-json\/wp\/v2\/media?parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ncl.ac.uk\/healtheconomicsgroup\/wp-json\/wp\/v2\/categories?post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ncl.ac.uk\/healtheconomicsgroup\/wp-json\/wp\/v2\/tags?post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}