[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-292193-105":59,"doc-detail-292193-en":130},{"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","stata-19-users-guide","Stata 19 User’s Guide","","Comprehensive release 19 manual for StataCorp’s statistical software, covering both fundamentals and advanced usage. Provides guidance on using Stata help and search facilities, understanding language syntax, and working with core elements such as data, functions and expressions, matrices, logs, do-files, ado-files, and programming concepts. Includes commands for estimation, postestimation, creating reports, entering and importing data, combining datasets, and handling strings, dates, categorical data, and factor variables.",{"@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/stata-19-users-guide/292193/",{"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/stata-19-users-guide/292193.png","ImageObject",300,407,{"name":92,"@type":93},"Clementine","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-12","2026-09-17",true,{"@type":102,"interactionType":103,"userInteractionCount":56},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What does the Stata 19 User’s Guide cover in its fundamentals section?","Question",{"text":112,"@type":113},"It covers Stata basics such as learning resources, help and search facilities, editions, memory management, conditions, error messages and return codes, and keyboard usage.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"Which topics are included under “Elements of Stata”?",{"text":117,"@type":113},"It includes language syntax, data, functions and expressions, matrix expressions, saving and printing output via logs, do-files, ado-files, programming Stata, immediate commands, estimation and postestimation, and creating reports.",{"name":119,"@type":110,"acceptedAnswer":120},"What does the guide say about working with different kinds of data?",{"text":121,"@type":113},"It provides advice for entering and importing data, combining datasets, working with strings, handling dates and times, and working with categorical data and factor variables.","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},292193,1789648885,{"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":56,"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":145,"preview_urls":146},1374391974564,"https://ap-avatar.wpscdn.com/avatar/14000253aa45c000a9e?x-image-process=image/resize,m_fixed,w_180,h_180&k=1779874745381141002","STATA USER'S GUIDE RELEASE 19  \nA Stata Press Publication StataCorp LLC College Station, Texas  \n®  \nCopyright © 1985–2025 StataCorp LLCAll rights reserved  \nVersion 19  \nPublished by Stata Press, 4905 Lakeway Drive, College Station, Texas 77845  \nISBN-10: 1-59718-449-7  \nISBN-13: 978-1-59718-449-6  \nThis manual is protected by copyright. All rights are reserved. No part of this manual may be reproduced, stored in a retrieval system, or transcribed, in any form or by any means—electronic, mechanical, photocopy, recording, or otherwise—without the prior written permission of StataCorp LLC unless permitted subject to the terms and conditions of a license granted to you by StataCorp LLC to use the software and documentation. No license, express or implied, byestoppel or otherwise, to any intellectual property rights is granted by this document.  \nStataCorp provides this manual “as is” without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. StataCorp may make improvements and/or changes in the product(s) and the program(s) described in this manual at any time and without notice.  \nThe software described in this manual is furnished under a license agreement or nondisclosure agreement. The software may be copied only in accordance with the terms of the agreement. It is against the law to copy the software onto DVD, CD, disk, diskette, tape, or any other medium for any purpose other than backup or archival purposes.  \nThe automobile dataset appearing on the accompanying media is Copyright © 1979 by Consumers Union of U.S., Inc., Yonkers, NY 10703-1057 and is reproduced by permission from CONSUMER REPORTS, April 1979 .  \nStata, , Stata Press, Mata, , NetCourse, and NetCourseNow are registered trademarks of StataCorp LLC. Stata and Stata Press are registered trademarks with the World Intellectual Property Organization of the United Nations. StataNow is a trademark of StataCorp LLC.  \nOther brand and product names are registered trademarks or trademarks oftheir respective companies.  \nFor copyright information about the software, type help copyright within Stata.  \nThe suggested citation for this software is  \nStataCorp. 2025. Stata 19. Statistical software. StataCorp LLC.  \nThe suggested citation for this manual is  \nStataCorp. 2025. Stata 19 User’s Guide. College Station, TX: Stata Press.  \n[www.stata.com](www.stata.com)  \nContents  \nStata basics  \n1 Read this—it will help ...................................................... 2  \n2 A brief description of Stata .................................................. 8  \n3 Resources for learning and using Stata ......................................... 12  \n4 Stata’s help and search facilities .............................................. 22  \n5 Editions of Stata ........................................................... 29  \n6 Managing memory ......................................................... 33  \n7 –more– conditions ......................................................... 35  \n8 Error messages and return codes .............................................. 36  \n9 The Break key ............................................................ 39  \n10 Keyboard use ............................................................. 41  \nElements of Stata  \n11 Language syntax .......................................................... 48  \n12 Data .................................................................... 82  \n13 Functions and expressions ................................................... 122  \n14 Matrix expressions ......................................................... 144  \n15 Saving and printing output—log files .......................................... 159  \n16 Do-files ................................................................. 165  \n17 Ado-files ................................................................ 177  \n18 Programming Stata ....................","cbCaikLrowDAg1im","https://ap.wps.com/l/cbCaikLrowDAg1im","pdf",3735021,404,"English","# Stata basics\n## Read this—it will help\n## A brief description of Stata\n## Resources for learning and using Stata\n## Stata’s help and search facilities\n## Editions of Stata\n## Managing memory\n## —more— conditions\n## Error messages and return codes\n## The Break key\n## Keyboard use\n# Elements of Stata\n## Language syntax\n## Data\n## Functions and expressions\n## Matrix expressions\n## Saving and printing output—log files\n## Do-files\n## Ado-files\n## Programming Stata\n## Immediate commands\n## Estimation and postestimation commands\n## Creating reports\n# Advice\n## Entering and importing data\n## Combining datasets\n## Working with strings\n## Working with dates and times\n## Working with categorical data and factor variables\n## Overview of Stata estimation commands\n## Commands everyone should know\n## Using the internet to keep up to date\n# Glossary\n# Subject and author index","[{\"question\":\"What does the Stata 19 User’s Guide cover in its fundamentals section?\",\"answer\":\"It covers Stata basics such as learning resources, help and search facilities, editions, memory management, conditions, error messages and return codes, and keyboard usage.\"},{\"question\":\"Which topics are included under “Elements of Stata”?\",\"answer\":\"It includes language syntax, data, functions and expressions, matrix expressions, saving and printing output via logs, do-files, ado-files, programming Stata, immediate commands, estimation and postestimation, and creating reports.\"},{\"question\":\"What does the guide say about working with different kinds of data?\",\"answer\":\"It provides advice for entering and importing data, combining datasets, working with strings, handling dates and times, and working with categorical data and factor variables.\"}]","Stata 19 User’s Guide | PDF",1018,41,[147,151,155,159,163,167,171,175,179,183,187,192,197,202,207,212,217,222,227,231,235,240,245,250,255,260,265,270,275,280,284,289,294,299,304,309,314,319,324,329,333],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/2fd5637da9143ad4a2bfde2a0aecf599.webp",983,1404,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/eb44f63dcaf40e534184cc02ab8e8c9f.webp",982,1402,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/140a23c3d15a7c8cdaeb2f027dbad852.webp",981,1401,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/7d1583e7d36091450c5d0caf46d50cee.webp",980,1399,{"page_no":24,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/d4e7746df21712611cd798efb793a7a3.webp",979,1398,{"page_no":29,"url":168,"width":169,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/2a69c24670406aadf092c7596d4cd548.webp",978,1396,{"page_no":34,"url":172,"width":173,"height":174},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/cf10edeba01483a2619d26d3f8fc47a2.webp",977,1395,{"page_no":39,"url":176,"width":177,"height":178},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/82414e927211ad243b89f4486e7b9959.webp",976,1394,{"page_no":44,"url":180,"width":181,"height":182},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/b95cbd5c8d400f7223002f7ed350a85a.webp",975,1392,{"page_no":52,"url":184,"width":185,"height":186},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/6c98799d7b9ddfc856d643c2314bbb00.webp",974,1391,{"page_no":188,"url":189,"width":190,"height":191},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/6a8024b2a135292b92ad4345dbd0fa16.webp",973,1389,{"page_no":193,"url":194,"width":195,"height":196},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/6af85c7e50a9c255ec3b174d85a6578d.webp",972,1388,{"page_no":198,"url":199,"width":200,"height":201},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/8e0c750d3700c102c6d360c3c3a1025b.webp",971,1386,{"page_no":203,"url":204,"width":205,"height":206},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/c78c0215776535d774f32edd19481c25.webp",970,1385,{"page_no":208,"url":209,"width":210,"height":211},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/e4d3e361983d9380a5dcd1155ee3a92f.webp",969,1384,{"page_no":213,"url":214,"width":215,"height":216},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/03f8764b253210b283d8fede0a41ec2d.webp",968,1382,{"page_no":218,"url":219,"width":220,"height":221},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/63570bcfae955717edf059bcefc4fbab.webp",967,1381,{"page_no":223,"url":224,"width":225,"height":226},18,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/36d0eead0c7ac882d70555eebba3256a.webp",966,1379,{"page_no":56,"url":228,"width":229,"height":230},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/56a66721c10cbb685b992ecc407a26fb.webp",965,1378,{"page_no":46,"url":232,"width":233,"height":234},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/41fc7e0c0b3fcd7a89f4fd3d27634b94.webp",964,1376,{"page_no":236,"url":237,"width":238,"height":239},21,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/c32b443dc4bc61cf1ac6d1e883ed49f3.webp",963,1375,{"page_no":241,"url":242,"width":243,"height":244},22,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/b7d78430bc60f2bafc60f807dc51a877.webp",962,1374,{"page_no":246,"url":247,"width":248,"height":249},23,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/51018b4f701277816f02eee788191b58.webp",961,1372,{"page_no":251,"url":252,"width":253,"height":254},24,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/77e25461a213b10e1546ec959f7a2985.webp",960,1371,{"page_no":256,"url":257,"width":258,"height":259},25,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/0a7cc3ba0cb5534ef592df5d8218e5e2.webp",959,1369,{"page_no":261,"url":262,"width":263,"height":264},26,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/62df6408edbea0f2866a8a4500fa1d5b.webp",958,1368,{"page_no":266,"url":267,"width":268,"height":269},27,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/a37707bfd646bde29b3997dde889bb92.webp",957,1366,{"page_no":271,"url":272,"width":273,"height":274},28,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/c8f2a64ee01c8a523be3ac21f1fa6739.webp",956,1365,{"page_no":276,"url":277,"width":278,"height":279},29,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/8a723d2bbaefe4ec94607d51175c671e.webp",955,1364,{"page_no":41,"url":281,"width":282,"height":283},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/84c759f93eeb721d7c31de69870dfd2c.webp",954,1362,{"page_no":285,"url":286,"width":287,"height":288},31,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/835a10cb9732eeb89985228dbb05b74c.webp",953,1361,{"page_no":290,"url":291,"width":292,"height":293},32,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/ebea152bf511b0be1a4b507f3edcb8cc.webp",952,1359,{"page_no":295,"url":296,"width":297,"height":298},33,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/8254f181996d2881850f1a3b749271f4.webp",951,1358,{"page_no":300,"url":301,"width":302,"height":303},34,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/5cee5614f0d124f762da9df731e8fe20.webp",950,1356,{"page_no":305,"url":306,"width":307,"height":308},35,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/a930f8070793870b19ecd60b14bac374.webp",949,1355,{"page_no":310,"url":311,"width":312,"height":313},36,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/625de5cca8fc0ab386e0811c731bbdde.webp",948,1354,{"page_no":315,"url":316,"width":317,"height":318},37,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/749a17b90d909858dfafcbaab500784d.webp",947,1352,{"page_no":320,"url":321,"width":322,"height":323},38,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/cd404de7ac6ee5f933873d0d525845d0.webp",946,1351,{"page_no":325,"url":326,"width":327,"height":328},39,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/ed25e23dde4fac4ae213cbfb1635350f.webp",945,1349,{"page_no":36,"url":330,"width":331,"height":332},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/46d7555133d17fba2b8c0b146d31d54f.webp",944,1348,{"page_no":145,"url":334,"width":335,"height":336},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/d4fbb947445a871d2f996f2daf0c4f24.webp",943,1346]