[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-721734-105":59,"doc-detail-721734-en":130,"doc-similar-721734":166},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","code-and-data-for-the-social-sciences-a-practitioners-guide","Code and Data for the Social Sciences - A Practitioner's Guide","","Code and Data for the Social Sciences - A Practitioner's Guide develops practical habits for conducting empirical social-science research with software. It addresses why researchers struggle with writing, debugging, and reusing code, especially when data pipelines break due to moving files, inconsistent sample definitions, merging behavior, or missing values. It then motivates a more systematic approach to organizing projects, managing versions, structuring directories, and maintaining clear documentation so results are reproducible and trustworthy.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/code-and-data-for-the-social-sciences-a-practitioners-guide/721734/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/code-and-data-for-the-social-sciences-a-practitioners-guide/721734.png","ImageObject",300,407,{"name":92,"@type":93},"noah","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-11-19",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What does the guide emphasize about doing empirical social science?","Question",{"text":112,"@type":113},"It emphasizes that empirical work often hinges on writing and debugging code for cleaning, transforming, scraping, merging, analyzing, simulating, and formatting results.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"Why do code and data problems arise during research projects?",{"text":117,"@type":113},"Common issues include moved or outdated files breaking replication, merges dropping observations due to missing keys, and copied sample-definition code leading to inconsistent results across the project.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the guide propose improving reliability and reuse of research code?",{"text":121,"@type":113},"It motivates systematic practices—rather than ad hoc handbooks and comments—to organize datasets and projects so large analyses remain workable and reproducible.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},721734,1795082873,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":24,"preview_urls":145},1099529839121,"https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","Code and Data for the Social Sciences: A Practitioner's Guide  \nMatthew Gentzkow Jesse M. Shapiro 1  \nChicago Booth and NBER  \nMarch 10, 2014  \n1 Copyright (c) 2014, Matthew Gentzkow and Jesse M. Shapiro. E-mail:  \n[matthew.gentzkow@chicagobooth.edu](matthew.gentzkow@chicagobooth.edu), [jesse.shapiro@chicagobooth.edu. Please](jesse.shapiro@chicagobooth.edu. Please) cite this  \ndocument as: Gentzkow, Matthew and Jesse M. Shapiro. 2014. Code and Data for the Social Sciences: A Practitioner's Guide. University of Chicago mimeo,  \n[http://faculty.chicagobooth.edu/matthew.gentzkow/research/CodeAndData.pdf](http://faculty.chicagobooth.edu/matthew.gentzkow/research/CodeAndData.pdf), last updated January 2014.  \n1  \nContents  \n1 Introduction 3  \n2 Automation 6  \n3 Version Control 11  \n4 Directories 15  \n5 Keys 18  \n6 Abstraction 22  \n7 Documentation 26  \n8 Management 30  \nAppendix: Code Style 35  \nChapter 1  \nIntroduction  \nWhat does it mean to do empirical social science? Asking good questions. Digging up novel data. Designing statistical analysis. Writing up results.  \nFor many of us, most of the time, what it means is writing and debugging code. We write code to clean data, to transform data, to scrape data, and to merge data. We write code to execute statistical analyses, to simulate models, to format results, to produce plots. We stare at, puzzle over, ﬁght with, and curse at code that isn't working the way we expect it to. We dig through old code trying to ﬁgure out what we were thinking when we wrote it, or why we're getting a different result from the one we got the week before.  \nEven researchers lucky enough to have graduate students or research assistants who write code for them still spend a signiﬁcant amount of time reviewing code, instructing on coding style, or ﬁxing broken code.  \nThough we all write code for a living, few of the economists, political scientists, psychologists, sociologists, or other empirical researchers we know have any formal training in computer science. Most of them picked up the basics of programming without much effort, and have never given it much thought since. Saying they should spend more time thinking about the way they write code would be like telling a novelist that she should spend more time thinking about how best to use Microsoft Word. Sure, there are people who take whole courses in how to change fonts or do mail merge, but anyone moderately clever just opens the thing up and ﬁgures out how it works along the way.  \nThis manual began with a growing sense that our own version of this self-taught seat-of-the-  \nCHAPTER 1 . INTRODUCTION 4  \npants approach to computing was hitting its limits. Again and again, we encountered situations like:  \n􀀏 In trying to replicate the estimates from an early draft of a paper, we discover that the code that produced the estimates no longer works because it calls ﬁles that have since been moved. When we ﬁnally track down the ﬁles and get the code running, the results are different from the earlier ones.  \n􀀏 In the middle of a project we realize that the number of observations in one of our regressionsis surprisingly low. After much sleuthing, we ﬁnd that many observations were dropped in a merge because they had missing values for the county identiﬁer we were merging on. When we correct the mistake and include the dropped observations, the results change dramatically.  \n􀀏 A referee suggests changing our sample deﬁnition. The code that deﬁnes the sample has been copied and pasted throughout our project directory, and making the change requires updating dozens of ﬁles. In doing this, we realize that we were actually using different deﬁnitions in different places, so some of our results are based on inconsistent samples.  \n􀀏 We are keen to build on work a research assistant did over the summer. We open her directory and discover hundreds of code and data ﬁles. Despite the fact that the code is full of long, detailed comments, just ﬁguring out which ﬁles to ","cbCaishs6FMM0QMS","https://ap.wps.com/l/cbCaishs6FMM0QMS","pdf",232381,45,"English","# Contents\n## Introduction\n## Automation\n## Version Control\n## Directories\n## Keys\n## Abstraction\n## Documentation\n## Management\n## Appendix: Code Style","[{\"question\":\"What does the guide emphasize about doing empirical social science?\",\"answer\":\"It emphasizes that empirical work often hinges on writing and debugging code for cleaning, transforming, scraping, merging, analyzing, simulating, and formatting results.\"},{\"question\":\"Why do code and data problems arise during research projects?\",\"answer\":\"Common issues include moved or outdated files breaking replication, merges dropping observations due to missing keys, and copied sample-definition code leading to inconsistent results across the project.\"},{\"question\":\"How does the guide propose improving reliability and reuse of research code?\",\"answer\":\"It motivates systematic practices—rather than ad hoc handbooks and comments—to organize datasets and projects so large analyses remain workable and reproducible.\"}]","Code and Data for the Social Sciences - A Practitioner's Guide | PDF",113,[146,150,154,158,162],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/8e5e94b98e6da8a70da167cfa6ed49b5.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/4eb1a71a31d769337ae92ef8622e87e3.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/d511e015996879b1a0510d739eb396ed.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/a8f61b74b0b56c25fc66224a2f1c6cd3.webp",980,1268,{"page_no":24,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-19/0a6cba6e63bc434f9e5c16fc5512d33d.webp",979,1267,{"list":167,"token":66},[168,175,182,188,194,201,207,214,221,227],{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":173,"category_name":40,"create_tm":174},85254,"Maintenance and Support in Community-Driven Scientific Pipeline Ecosystems: A Cross-Platform Empirical Study of nf-core","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809297902/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=iD4xFSOPkW8x3TcPkVH4blFdWpg%3D","maintenance-and-support-in-community-driven-scientific-pipeline-ecosystems-a-cross-platform-empirical-study-of-nf-core",25,1784202099,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":180,"category_name":40,"create_tm":181},82385,"Balancing Usefulness and Naturalness An LLM-based Curation Pipeline for Code Review Comments","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808737611/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=88Hof3uaciDw0QNUauVRXRf5UWY%3D","balancing-usefulness-and-naturalness-an-llm-based-curation-pipeline-for-code-review-comments",26,1784180066,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":81,"category_name":40,"create_tm":187},733007,"On the Maintenance and Co-evolution of Agent Plugins - An Empirical Study of Claude Code Plugin Marketplaces","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031415331/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=kMX3bR2WMK0Qm5I9eSKY0i2tQSg%3D","on-the-maintenance-and-co-evolution-of-agent-plugins-an-empirical-study-of-claude-code-plugin-marketplaces",1795383308,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":19,"category_name":40,"create_tm":193},696844,"Claude Code for Academics - An AI Agent for Empirical Research - UTS Finance Department Brownbag - March 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009777890/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=iOHYqjo4G8F4s%2Bf433qj128YY0A%3D","claude-code-for-academics-an-ai-agent-for-empirical-research-uts-finance-department-brownbag-march-2026",1794435043,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":40,"create_tm":200},85948,"Towards Autonomous and Auditable Medical Imaging Model Development","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809492862/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=eS3uGufYecVkCYHIQ9koPFaWmSU%3D","towards-autonomous-and-auditable-medical-imaging-model-development",24,1784207316,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":173,"category_name":40,"create_tm":206},84973,"Evaluating Endpoint Detection Robustness Against Genetic Algorithm Driven Code Transformations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809227335/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=BjkaT1HDfk09S3ewt4%2FSu41t7zk%3D","evaluating-endpoint-detection-robustness-against-genetic-algorithm-driven-code-transformations",1784199876,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":40,"create_tm":213},589984,"Beyond the use of Code Mixing by Social Media Influencers in Instagram - Article","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229954913967/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=0EPfii3R1zG4eLxRaQRzUNK%2BDSE%3D","beyond-the-use-of-code-mixing-by-social-media-influencers-in-instagram-article",17,1792068540,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":219,"category_name":40,"create_tm":220},504390,"Subverting Orthodoxy, Making Law Central - A View of Sociolegal Studies","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229932090585/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=%2F3I0vJhOu1B7f88BHkTg11P4rAs%3D","subverting-orthodoxy-making-law-central-a-view-of-sociolegal-studies",13,1791066786,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":39,"category_name":40,"create_tm":226},578412,"An Examination of Influential Factors on Gamification in Higher Education - A Content Analysis","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229953220155/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=FLnKM5Yh7gNF7LThJ7HReTGQo8o%3D","an-examination-of-influential-factors-on-gamification-in-higher-education-a-content-analysis",1792033690,{"doc_id":228,"doc_title":229,"file_type":137,"home_preview_img_url":230,"slug":231,"view_count":56,"category_name":40,"create_tm":232},121972,"A Large-Scale Study of Probabilistic Calibration in Neural Network Regression - Proceedings","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229836721786/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=V1ocos0VK5fmcgEfaZ%2FM1ijHamM%3D","a-large-scale-study-of-probabilistic-calibration-in-neural-network-regression-proceedings",1785808091]