{"id":1750,"date":"2020-07-06T12:35:47","date_gmt":"2020-07-06T12:35:47","guid":{"rendered":"http:\/\/optimumsportsperformance.com\/blog\/?p=1750"},"modified":"2020-07-06T12:35:47","modified_gmt":"2020-07-06T12:35:47","slug":"tidyx-episode-17-regression-kmeans-clustering-pca","status":"publish","type":"post","link":"https:\/\/optimumsportsperformance.com\/blog\/tidyx-episode-17-regression-kmeans-clustering-pca\/","title":{"rendered":"TidyX Episode 17: Regression, KMeans Clustering, &#038; PCA"},"content":{"rendered":"<p>This week, <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/ellis_hughes\"><strong><span style=\"color: #0000ff;\">Ellis Hughes<\/span><\/strong><\/a><\/span> and I explain the code <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/rjstevick\/status\/1278058941684092929\"><strong><span style=\"color: #0000ff;\">Rebecca Stevick<\/span><\/strong><\/a>, <span style=\"color: #000000;\">who shows us how to <\/span><\/span>plot a linear regression model with the regression line, regression equation, and correlation coefficient all conveniently visualized on the plot. The plot was created using data on The Uncanny X-Men comic books and was supplied by the <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/rfordatascience\/tidytuesday\">TidyTuesday Project<\/a><\/span><\/strong>.<\/p>\n<p>Following Rebecca&#8217;s code we delve into other ways of looking at the regression equation and discuss using Ellis&#8217; R package, <span style=\"color: #0000ff;\"><strong>{colortable}<\/strong><\/span>, to produce conditionally formatted tables for model outputs. We then move on to using the X-Men data to build and visualize a KMeans Cluster and PCA.<\/p>\n<p>The episode is a little longer than usual (50 minutes) but combines a number of different thoughts around coding and visualizing statistical models in R.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week, Ellis Hughes and I explain the code Rebecca Stevick, who shows us how to plot a linear regression model with the regression line, regression equation, and correlation coefficient all conveniently visualized on the plot. The plot was created using data on The Uncanny X-Men comic books and was supplied by the TidyTuesday Project. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"class_list":["post-1750","post","type-post","status-publish","format-standard","hentry","category-tidyx-screen-cast"],"_links":{"self":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/comments?post=1750"}],"version-history":[{"count":1,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1750\/revisions"}],"predecessor-version":[{"id":1751,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1750\/revisions\/1751"}],"wp:attachment":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/media?parent=1750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/categories?post=1750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/tags?post=1750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}