{"componentChunkName":"component---src-templates-post-query-tsx","path":"/blog-post/model-stata-do-file-for-demographic-decomposition-papers/","result":{"pageContext":{"post":{"slug":"/blog-post/model-stata-do-file-for-demographic-decomposition-papers/","title":"model Stata do file for demographic decomposition papers","date":"Nov 28, 2015","timeToRead":1,"description":"Diane and I just finished teaching a weeklong workshop at the Indian Statistical Institute in Delhi, where we taught about how to write empirical papers using demographic datasets in Stata.  In particular, we focused on demographic decomposition techniques as a transparent way to write about interesting and important empirical facts.  This sort of paper embraces paradoxes, puzzles, and otherwise messy correlations.","body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"model Stata do file for demographic decomposition papers\",\n  \"date\": \"2015-11-28\",\n  \"template\": \"post\",\n  \"slug\": \"model-stata-do-file-for-demographic-decomposition-papers\",\n  \"postedLink\": \"https://riceinstitute.org/blog/model-stata-do-file-for-demographic-decomposition-papers/\",\n  \"description\": \"Diane and I just finished teaching a weeklong workshop at the Indian Statistical Institute in Delhi, where we taught about how to write empirical papers using demographic datasets in Stata.  In particular, we focused on demographic decomposition techniques as a transparent way to write about interesting and important empirical facts.  This sort of paper embraces paradoxes, puzzles, and otherwise messy correlations.\",\n  \"tags\": \"Blog Post\",\n  \"banner\": \"model-stata-do-file.jpg\"\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"Diane and I just finished teaching a weeklong workshop at the Indian Statistical Institute in Delhi, where we taught about how to write empirical papers using demographic datasets in Stata.\\xA0 In particular, we focused on demographic decomposition techniques as a transparent way to write about interesting and important empirical facts.\\xA0 This sort of paper embraces paradoxes, puzzles, and otherwise messy correlations.\"), mdx(\"p\", null, \"As part of the course, I made this \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://drive.google.com/file/d/0B6INpRxPZsYTY1RMLXBvQkRNM00/view?usp=sharing\",\n    \"target\": \"_blank\",\n    \"rel\": \"noopener noreferrer\"\n  }, \"model do file\"), \" that collected what the class learned.\\xA0 In case it is of use to you, I thought to post it here online.\\xA0 You can modify the program to help write your own decomposition paper.\"), mdx(\"p\", null, \"The do file made the graph included with this blog post.\\xA0 The motivating example is to use Bangladeshi DHS data to ask how much of the difference in average child height between rural and urban Bangladesh can be accounted for by differences in mothers' education.\"));\n}\n;\nMDXContent.isMDXComponent = true;","tags":[{"name":"Blog Post","slug":"blog-post"}],"banner":{"childImageSharp":{"fluid":{"src":"/static/7d7abfa4e988731c7fabab1549455f84/29765/model-stata-do-file.jpg","srcSet":"/static/7d7abfa4e988731c7fabab1549455f84/55357/model-stata-do-file.jpg 200w,\n/static/7d7abfa4e988731c7fabab1549455f84/29765/model-stata-do-file.jpg 500w,\n/static/7d7abfa4e988731c7fabab1549455f84/1f218/model-stata-do-file.jpg 1000w","aspectRatio":2.5,"sizes":"(max-width: 500px) 100vw, 500px","base64":"data:image/jpeg;base64,/9j/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVGC8aGi9jQjhCY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2P/wgARCAAIABQDASIAAhEBAxEB/8QAFwABAAMAAAAAAAAAAAAAAAAAAAECBf/EABQBAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhADEAAAAd+AsD//xAAUEAEAAAAAAAAAAAAAAAAAAAAQ/9oACAEBAAEFAn//xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAEDAQE/AT//xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAECAQE/AT//xAAUEAEAAAAAAAAAAAAAAAAAAAAQ/9oACAEBAAY/An//xAAWEAEBAQAAAAAAAAAAAAAAAAABABD/2gAIAQEAAT8hYTP/2gAMAwEAAgADAAAAEAAP/8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAwEBPxA//8QAFBEBAAAAAAAAAAAAAAAAAAAAEP/aAAgBAgEBPxA//8QAGRAAAgMBAAAAAAAAAAAAAAAAAREAEEFR/9oACAEBAAE/ECSOToDr/9k="}}}}}},"staticQueryHashes":["318001574","3787687951","3787687951"]}