{"id":1741,"date":"2018-10-30T17:19:49","date_gmt":"2018-10-30T17:19:49","guid":{"rendered":"http:\/\/opisthokonta.net\/?p=1741"},"modified":"2018-10-30T17:19:49","modified_gmt":"2018-10-30T17:19:49","slug":"introducing-the-goalmodel-r-package","status":"publish","type":"post","link":"https:\/\/opisthokonta.net\/?p=1741","title":{"rendered":"Introducing the goalmodel R package"},"content":{"rendered":"<p>I have written a lot about different models for forecasting football results, and provided a lot of R code along the way. Especially popular are my posts about the <a href=\"https:\/\/opisthokonta.net\/?cat=48\">Dixon-Coles model<\/a>, where people still post comments, four years since I first wrote them. Because of the interest in them, and the interest in some of the other models I have written about, I decided to tidy up my code and functions a bit, and make an R package out of it. The result is the <a href=\"https:\/\/github.com\/opisthokonta\/goalmodel\">goalmodel R package<\/a>. The package let you fit the <a href=\"https:\/\/opisthokonta.net\/?p=296\">ordinary Poisson model<\/a>, which was one of the first models I wrote about, the Dixon-Coles model, The Negative-Binomial model, and you can also use the <a href=\"https:\/\/opisthokonta.net\/?p=1701\">adjustment I wrote about in my previous update<\/a>.  <\/p>\n<p>The package contains a function to fit the different models, and you can even combine different aspects of the different models into the same model. You can for instance use the Dixon-Coles adjustment together with a negative binomial model. There is also a range of different methods for making prediction of different kinds, such as expected goals and over\/under. <\/p>\n<p>The package can be downloaded <a href=\"https:\/\/github.com\/opisthokonta\/goalmodel\">from github<\/a>. It is still just the initial version, so there are probably some bugs and stuff to be sorted out, but go and try it out and let me know what you think!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have written a lot about different models for forecasting football results, and provided a lot of R code along the way. Especially popular are my posts about the Dixon-Coles model, where people still post comments, four years since I &hellip; <a href=\"https:\/\/opisthokonta.net\/?p=1741\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,5,6],"tags":[],"class_list":["post-1741","post","type-post","status-publish","format-standard","hentry","category-dixon-coles-model","category-r","category-soccer"],"_links":{"self":[{"href":"https:\/\/opisthokonta.net\/index.php?rest_route=\/wp\/v2\/posts\/1741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opisthokonta.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opisthokonta.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opisthokonta.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/opisthokonta.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1741"}],"version-history":[{"count":7,"href":"https:\/\/opisthokonta.net\/index.php?rest_route=\/wp\/v2\/posts\/1741\/revisions"}],"predecessor-version":[{"id":1757,"href":"https:\/\/opisthokonta.net\/index.php?rest_route=\/wp\/v2\/posts\/1741\/revisions\/1757"}],"wp:attachment":[{"href":"https:\/\/opisthokonta.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opisthokonta.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opisthokonta.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}