{"id":423,"date":"2019-08-14T13:07:47","date_gmt":"2019-08-14T11:07:47","guid":{"rendered":"https:\/\/www.statsimprove.com\/en\/?p=423"},"modified":"2019-08-14T13:08:37","modified_gmt":"2019-08-14T11:08:37","slug":"centering-the-variables-what-it-means-and-what-it-is-used-for-2","status":"publish","type":"post","link":"https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/","title":{"rendered":"&#8220;Centering&#8221; the variables: what it means and what it is used for"},"content":{"rendered":"<p>Variables &#8220;centering&#8221; is a procedure that researches ignore quite often working with empirical data.<br \/>\nBut what is it? Why can it be very important?<\/p>\n<p><strong>Let&#8217;s look at a trivial example:<\/strong><br \/>\n10 subjects have an annual income and want to assess if this income is related to:<br \/>\nage;<br \/>\nsex (0\/males, 1\/females);<br \/>\nthe level of education (0 \/&#8221;normal&#8221; education, 1\/&#8221;high&#8221; education).<\/p>\n<p><strong>When we fit a classic linear regression model we get:<\/strong><br \/>\nan intercept;<br \/>\na coefficient for an age;<br \/>\na coefficient for the level of education;<br \/>\na coefficient for a sex.<\/p>\n<p><strong>Let&#8217;s say that now you want to interpret the intercept.<\/strong><\/p>\n<p>The intercept is the average income when the value of all the variables is 0.<br \/>\nIn our case the intercept would represent the average income of males (sex = 0), of a normal education (education = 0) and &#8230; of zero years!<\/p>\n<p>You understand that in this way the value of the intercept is &#8220;not interpretable&#8221; because at zero years it is impossible to have an income.<br \/>\nTherefore, to have an interpretable value, you can analyse the data using a &#8220;centered&#8221; variable of age, obtained by subtracting the average age from each age value instead of direct use of the age variable.<\/p>\n<p>You don&#8217;t have to necessarily subtract the average; you can &#8220;centre&#8221; your variable in any other way, but using the average is, may be, the most widespread criterion.<\/p>\n<p><strong>Let\u2019s assume that your 10 subjects, had the following age:<\/strong><br \/>\n27, 35, 37, 37, 40, 45, 46, 52, 55 and 62 years old.<br \/>\nThe average age was 43.6 years.<\/p>\n<p>Instead of using these values in your regression model you will subtract the average from each of them resulting the following values:<br \/>\n-16.6, -8.6, -6.6, -6.6, -3.6, 1.4, 2.4, 8.4, 11.4 and 18.4.<br \/>\nIn this case the coefficients will not be changed but the new intercept will be interpretable as the average income of males of normal education and of average age.<\/p>\n<p>This is just an example of centering the variables by their average value, but I hope you have realized the potential of this strategy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Variables &#8220;centering&#8221; is a procedure that researches ignore quite often working with empirical data. But what is it? Why can it be very important? Let&#8217;s look at a trivial example: 10 subjects have an annual income and want to assess if this income is related to: age; sex (0\/males, 1\/females); the level of education (0&hellip;&nbsp;<a href=\"https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">&#8220;Centering&#8221; the variables: what it means and what it is used for<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","_themeisle_gutenberg_block_has_review":false,"_ti_tpc_template_sync":false,"_ti_tpc_template_id":""},"categories":[6],"tags":[],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>&quot;Centering&quot; the variables: what it means and what it is used for - StatsImprove<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;Centering&quot; the variables: what it means and what it is used for - StatsImprove\" \/>\n<meta property=\"og:description\" content=\"Variables &#8220;centering&#8221; is a procedure that researches ignore quite often working with empirical data. But what is it? Why can it be very important? Let&#8217;s look at a trivial example: 10 subjects have an annual income and want to assess if this income is related to: age; sex (0\/males, 1\/females); the level of education (0&hellip;&nbsp;Read More &raquo;&#8220;Centering&#8221; the variables: what it means and what it is used for\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/\" \/>\n<meta property=\"og:site_name\" content=\"StatsImprove\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-14T11:07:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-08-14T11:08:37+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"gianfranco\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.statsimprove.com\/en\/#website\",\"url\":\"https:\/\/www.statsimprove.com\/en\/\",\"name\":\"StatsImprove\",\"description\":\"Low Cost and Highly Professional Statistical Consultancy\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.statsimprove.com\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/#webpage\",\"url\":\"https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/\",\"name\":\"\\\"Centering\\\" the variables: what it means and what it is used for - StatsImprove\",\"isPartOf\":{\"@id\":\"https:\/\/www.statsimprove.com\/en\/#website\"},\"datePublished\":\"2019-08-14T11:07:47+00:00\",\"dateModified\":\"2019-08-14T11:08:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.statsimprove.com\/en\/#\/schema\/person\/914fc4bf93820662fc24f6ed5fe66da6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.statsimprove.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"&#8220;Centering&#8221; the variables: what it means and what it is used for\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.statsimprove.com\/en\/#\/schema\/person\/914fc4bf93820662fc24f6ed5fe66da6\",\"name\":\"gianfranco\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.statsimprove.com\/en\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5e17e118aa99660d02d82ded19b4f3b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5e17e118aa99660d02d82ded19b4f3b5?s=96&d=mm&r=g\",\"caption\":\"gianfranco\"},\"description\":\"Specialista in Statistica Medica\",\"url\":\"https:\/\/www.statsimprove.com\/en\/author\/gianfranco\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\"Centering\" the variables: what it means and what it is used for - StatsImprove","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/","og_locale":"en_US","og_type":"article","og_title":"\"Centering\" the variables: what it means and what it is used for - StatsImprove","og_description":"Variables &#8220;centering&#8221; is a procedure that researches ignore quite often working with empirical data. But what is it? Why can it be very important? Let&#8217;s look at a trivial example: 10 subjects have an annual income and want to assess if this income is related to: age; sex (0\/males, 1\/females); the level of education (0&hellip;&nbsp;Read More &raquo;&#8220;Centering&#8221; the variables: what it means and what it is used for","og_url":"https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/","og_site_name":"StatsImprove","article_published_time":"2019-08-14T11:07:47+00:00","article_modified_time":"2019-08-14T11:08:37+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"gianfranco","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.statsimprove.com\/en\/#website","url":"https:\/\/www.statsimprove.com\/en\/","name":"StatsImprove","description":"Low Cost and Highly Professional Statistical Consultancy","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.statsimprove.com\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/#webpage","url":"https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/","name":"\"Centering\" the variables: what it means and what it is used for - StatsImprove","isPartOf":{"@id":"https:\/\/www.statsimprove.com\/en\/#website"},"datePublished":"2019-08-14T11:07:47+00:00","dateModified":"2019-08-14T11:08:37+00:00","author":{"@id":"https:\/\/www.statsimprove.com\/en\/#\/schema\/person\/914fc4bf93820662fc24f6ed5fe66da6"},"breadcrumb":{"@id":"https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.statsimprove.com\/en\/centering-the-variables-what-it-means-and-what-it-is-used-for-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.statsimprove.com\/en\/"},{"@type":"ListItem","position":2,"name":"&#8220;Centering&#8221; the variables: what it means and what it is used for"}]},{"@type":"Person","@id":"https:\/\/www.statsimprove.com\/en\/#\/schema\/person\/914fc4bf93820662fc24f6ed5fe66da6","name":"gianfranco","image":{"@type":"ImageObject","@id":"https:\/\/www.statsimprove.com\/en\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/5e17e118aa99660d02d82ded19b4f3b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5e17e118aa99660d02d82ded19b4f3b5?s=96&d=mm&r=g","caption":"gianfranco"},"description":"Specialista in Statistica Medica","url":"https:\/\/www.statsimprove.com\/en\/author\/gianfranco\/"}]}},"_links":{"self":[{"href":"https:\/\/www.statsimprove.com\/en\/wp-json\/wp\/v2\/posts\/423"}],"collection":[{"href":"https:\/\/www.statsimprove.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.statsimprove.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.statsimprove.com\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.statsimprove.com\/en\/wp-json\/wp\/v2\/comments?post=423"}],"version-history":[{"count":1,"href":"https:\/\/www.statsimprove.com\/en\/wp-json\/wp\/v2\/posts\/423\/revisions"}],"predecessor-version":[{"id":425,"href":"https:\/\/www.statsimprove.com\/en\/wp-json\/wp\/v2\/posts\/423\/revisions\/425"}],"wp:attachment":[{"href":"https:\/\/www.statsimprove.com\/en\/wp-json\/wp\/v2\/media?parent=423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.statsimprove.com\/en\/wp-json\/wp\/v2\/categories?post=423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.statsimprove.com\/en\/wp-json\/wp\/v2\/tags?post=423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}