{"id":2298,"date":"2022-06-01T09:16:15","date_gmt":"2022-06-01T08:16:15","guid":{"rendered":"https:\/\/www.microdata.no\/?p=2298"},"modified":"2022-06-15T08:45:14","modified_gmt":"2022-06-15T07:45:14","slug":"new-regression-functionality-oaxaca","status":"publish","type":"post","link":"https:\/\/www.microdata.no\/en\/new-regression-functionality-oaxaca\/","title":{"rendered":"New regression functionality: Oaxaca"},"content":{"rendered":"\n<p><strong><em>The analysis directory in microdata.no has been expanded with the new command <code>oaxaca<\/code>. This is a tool to measure whether there are systematic differences between two groups, e.g. men and women, and the differences are further decomposed into an explained and an unexplained component.<\/em><\/strong><\/p>\n\n\n\n<!--more-->\n\n\n\n<p>The <code>oaxaca<\/code> command performs a Blinder-Oaxaca decomposition that is used to explain differences in the mean value of the dependent variable for two groups. The difference is decomposed into two components: Explained difference (&#8220;between group&#8221;) and unexplained effect (coefficient effect). Similar to the <code>regress<\/code> command, continuous dependent variables such as e.g. wage are used. The difference is that you specify the two groups through the by-variable when using <code>oaxaca<\/code>.<\/p>\n\n\n\n<p>The by-variable used for grouping must be categorical, but can have both numeric and alphanumeric value formats. The value that is ranked first (numerically or alphabetically) is linked to group 1. If the variable contains more than two values, the two values \u200b\u200bthat are ranked first are used, while the others are kept out of the analysis.<\/p>\n\n\n\n<p>The standard solution used is &#8220;three-fold&#8221;, and you get the main numbers:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The difference in the average value of the dependent variable measured for each of the two groups: mean(group1) &#8211; mean(group2)<\/li><li>Decomposed difference: Explained, unexplained and simultaneous effect<\/li><li>Number of units belonging to the two respective groups, as well as which value codes are used<\/li><\/ul>\n\n\n\n<p>By using the <code>pool<\/code> option, the system will use a so-called &#8220;two-fold pooled&#8221; approach where the decomposition uses the overall average as a reference value (simultaneous effect is not reported in this approach).<\/p>\n\n\n\n<p>The most common use is to analyze systematic differences in economic variables such as wages, and compare men against women. But other types of groupings can also be used.<\/p>\n\n\n\n<p>Example of using <code>oaxaca<\/code>:<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/05\/image.png\" alt=\"Dette bildet mangler alt-tekst; dets filnavn er image.png\"\/><figcaption>Note that the difference in mean value reported by <code>oaxaca<\/code> differs slightly from the difference found by using the <code>summarize<\/code> command on the dependent variable for each of the two groups. The reason is that descriptive statistics generated through commands like <code>summarize<\/code> are subject to winsorization (right and left censorship). Regression results from commands such as <code>oaxaca<\/code>, on the other hand, are not winsorized, and show the correct difference.<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The analysis directory in microdata.no has been expanded with the new command oaxaca. This is a tool to measure whether there are systematic differences between two groups, e.g. men and women, and the differences are further decomposed into an explained and an unexplained component.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-2298","post","type-post","status-publish","format-standard","hentry","category-news"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>New regression functionality: Oaxaca - microdata.no<\/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.microdata.no\/en\/new-regression-functionality-oaxaca\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"New regression functionality: Oaxaca - microdata.no\" \/>\n<meta property=\"og:description\" content=\"The analysis directory in microdata.no has been expanded with the new command oaxaca. This is a tool to measure whether there are systematic differences between two groups, e.g. men and women, and the differences are further decomposed into an explained and an unexplained component.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.microdata.no\/en\/new-regression-functionality-oaxaca\/\" \/>\n<meta property=\"og:site_name\" content=\"microdata.no\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-01T08:16:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-15T07:45:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/05\/image.png\" \/>\n<meta name=\"author\" content=\"Trond Pedersen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Trond Pedersen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-regression-functionality-oaxaca\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-regression-functionality-oaxaca\\\/\"},\"author\":{\"name\":\"Trond Pedersen\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/#\\\/schema\\\/person\\\/76761ddfe0d06e3f08f5491a9faeab92\"},\"headline\":\"New regression functionality: Oaxaca\",\"datePublished\":\"2022-06-01T08:16:15+00:00\",\"dateModified\":\"2022-06-15T07:45:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-regression-functionality-oaxaca\\\/\"},\"wordCount\":359,\"image\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-regression-functionality-oaxaca\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.microdata.no\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/image.png\",\"articleSection\":[\"News\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-regression-functionality-oaxaca\\\/\",\"url\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-regression-functionality-oaxaca\\\/\",\"name\":\"New regression functionality: Oaxaca - microdata.no\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-regression-functionality-oaxaca\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-regression-functionality-oaxaca\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.microdata.no\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/image.png\",\"datePublished\":\"2022-06-01T08:16:15+00:00\",\"dateModified\":\"2022-06-15T07:45:14+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/#\\\/schema\\\/person\\\/76761ddfe0d06e3f08f5491a9faeab92\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-regression-functionality-oaxaca\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-regression-functionality-oaxaca\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-regression-functionality-oaxaca\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.microdata.no\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/image.png\",\"contentUrl\":\"https:\\\/\\\/www.microdata.no\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/image.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/new-regression-functionality-oaxaca\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hjem\",\"item\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"New regression functionality: Oaxaca\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/#website\",\"url\":\"https:\\\/\\\/www.microdata.no\\\/\",\"name\":\"microdata.no\",\"description\":\"Gj\u00f8r det enklere \u00e5 analysere registerdata\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.microdata.no\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.microdata.no\\\/#\\\/schema\\\/person\\\/76761ddfe0d06e3f08f5491a9faeab92\",\"name\":\"Trond Pedersen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b90e3f42c839e825d86949fc2f9a318f2a81da5f9e6b1431ff4d872333d4e717?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b90e3f42c839e825d86949fc2f9a318f2a81da5f9e6b1431ff4d872333d4e717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b90e3f42c839e825d86949fc2f9a318f2a81da5f9e6b1431ff4d872333d4e717?s=96&d=mm&r=g\",\"caption\":\"Trond Pedersen\"},\"url\":\"https:\\\/\\\/www.microdata.no\\\/en\\\/author\\\/trond\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"New regression functionality: Oaxaca - microdata.no","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.microdata.no\/en\/new-regression-functionality-oaxaca\/","og_locale":"en_US","og_type":"article","og_title":"New regression functionality: Oaxaca - microdata.no","og_description":"The analysis directory in microdata.no has been expanded with the new command oaxaca. This is a tool to measure whether there are systematic differences between two groups, e.g. men and women, and the differences are further decomposed into an explained and an unexplained component.","og_url":"https:\/\/www.microdata.no\/en\/new-regression-functionality-oaxaca\/","og_site_name":"microdata.no","article_published_time":"2022-06-01T08:16:15+00:00","article_modified_time":"2022-06-15T07:45:14+00:00","og_image":[{"url":"https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/05\/image.png","type":"","width":"","height":""}],"author":"Trond Pedersen","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Trond Pedersen","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.microdata.no\/en\/new-regression-functionality-oaxaca\/#article","isPartOf":{"@id":"https:\/\/www.microdata.no\/en\/new-regression-functionality-oaxaca\/"},"author":{"name":"Trond Pedersen","@id":"https:\/\/www.microdata.no\/#\/schema\/person\/76761ddfe0d06e3f08f5491a9faeab92"},"headline":"New regression functionality: Oaxaca","datePublished":"2022-06-01T08:16:15+00:00","dateModified":"2022-06-15T07:45:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.microdata.no\/en\/new-regression-functionality-oaxaca\/"},"wordCount":359,"image":{"@id":"https:\/\/www.microdata.no\/en\/new-regression-functionality-oaxaca\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/05\/image.png","articleSection":["News"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.microdata.no\/en\/new-regression-functionality-oaxaca\/","url":"https:\/\/www.microdata.no\/en\/new-regression-functionality-oaxaca\/","name":"New regression functionality: Oaxaca - microdata.no","isPartOf":{"@id":"https:\/\/www.microdata.no\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.microdata.no\/en\/new-regression-functionality-oaxaca\/#primaryimage"},"image":{"@id":"https:\/\/www.microdata.no\/en\/new-regression-functionality-oaxaca\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/05\/image.png","datePublished":"2022-06-01T08:16:15+00:00","dateModified":"2022-06-15T07:45:14+00:00","author":{"@id":"https:\/\/www.microdata.no\/#\/schema\/person\/76761ddfe0d06e3f08f5491a9faeab92"},"breadcrumb":{"@id":"https:\/\/www.microdata.no\/en\/new-regression-functionality-oaxaca\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.microdata.no\/en\/new-regression-functionality-oaxaca\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microdata.no\/en\/new-regression-functionality-oaxaca\/#primaryimage","url":"https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/05\/image.png","contentUrl":"https:\/\/www.microdata.no\/wp-content\/uploads\/2022\/05\/image.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.microdata.no\/en\/new-regression-functionality-oaxaca\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Hjem","item":"https:\/\/www.microdata.no\/en\/"},{"@type":"ListItem","position":2,"name":"New regression functionality: Oaxaca"}]},{"@type":"WebSite","@id":"https:\/\/www.microdata.no\/#website","url":"https:\/\/www.microdata.no\/","name":"microdata.no","description":"Gj\u00f8r det enklere \u00e5 analysere registerdata","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.microdata.no\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.microdata.no\/#\/schema\/person\/76761ddfe0d06e3f08f5491a9faeab92","name":"Trond Pedersen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b90e3f42c839e825d86949fc2f9a318f2a81da5f9e6b1431ff4d872333d4e717?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b90e3f42c839e825d86949fc2f9a318f2a81da5f9e6b1431ff4d872333d4e717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b90e3f42c839e825d86949fc2f9a318f2a81da5f9e6b1431ff4d872333d4e717?s=96&d=mm&r=g","caption":"Trond Pedersen"},"url":"https:\/\/www.microdata.no\/en\/author\/trond\/"}]}},"taxonomy_info":{"category":[{"value":2,"label":"News"}]},"featured_image_src_large":false,"author_info":{"display_name":"Trond Pedersen","author_link":"https:\/\/www.microdata.no\/en\/author\/trond\/"},"comment_info":0,"category_info":[{"term_id":2,"name":"News","slug":"news","term_group":0,"term_taxonomy_id":2,"taxonomy":"category","description":"","parent":0,"count":79,"filter":"raw","cat_ID":2,"category_count":79,"category_description":"","cat_name":"News","category_nicename":"news","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/posts\/2298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/comments?post=2298"}],"version-history":[{"count":2,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/posts\/2298\/revisions"}],"predecessor-version":[{"id":2355,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/posts\/2298\/revisions\/2355"}],"wp:attachment":[{"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/media?parent=2298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/categories?post=2298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.microdata.no\/en\/wp-json\/wp\/v2\/tags?post=2298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}