Using Stata for Quantitative Analysis. Kyle C. Longest
Using Stata® for Quantitative Analysis
Third Edition
For my boys, Harrison and Hayes
Using Stata® for Quantitative Analysis
Third Edition
Kyle C. Longest
Furman University
Copyright © 2020 by SAGE Publications, Inc.
All rights reserved. Except as permitted by U.S. copyright law, no part of this work may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without permission in writing from the publisher.
All third party trademarks referenced or depicted herein are included solely for the purpose of illustration and are the property of their respective owners. Reference to these trademarks in no way indicates any relationship with, or endorsement by, the trademark owner.
FOR INFORMATION:
SAGE Publications, Inc.
2455 Teller Road
Thousand Oaks, California 91320
E-mail: [email protected]
SAGE Publications Ltd.
1 Oliver’s Yard
55 City Road
London EC1Y 1SP
United Kingdom
SAGE Publications India Pvt. Ltd.
B 1/I 1 Mohan Cooperative Industrial Area
Mathura Road, New Delhi 110 044
India
SAGE Publications Asia-Pacific Pte Ltd
18 Cross Street #10–10/11/12
China Square Central
Singapore 048423
Library of Congress Cataloging-in-Publication Data
Names: Longest, Kyle C., author.
Title: Using Stata for quantitative analysis / Kyle C. Longest, Furman University.
Description: Third Edition. | Thousand Oaks : SAGE Publications, Inc., Corwin, CQ Press, [2019] | Revised edition of the author’s Using Stata for quantitative analysis, [2015] | Includes bibliographical references and index.
Identifiers: LCCN 2018042907 | ISBN 9781544318523 (pbk. : alk. paper)
Subjects: LCSH: Stata. | Social sciences—Graphic methods—Computer programs. | Social sciences—Statistical methods—Computer programs.
Classification: LCC HA32 .L66 2019 | DDC 005.5/5—dc23 LC record available at https://lccn.loc.gov/2018042907
Printed in the United States of America
The trademarks pertaining to Stata software are the property of StataCorp LP, 4905 Lakeway Drive, College Station, TX 77845 USA. Their use in no way indicates any relationship between StataCorp LP and SAGE Publications, Inc.
19 20 21 22 23 10 9 8 7 6 5 4 3 2 1
Acquisitions Editor: Leah Fargotstein
Content Development Editor: Chelsea Neve
Editorial Assistant: Claire Laminen
Production Editor: Andrew Olson
Copy Editor: Lana Arndt
Typesetter: Integra
Proofreader: Scott Oney
Cover Designer: Dally Verghese
Marketing Manager: Shari Countryman
Preface
Motivation and Purpose
The motivation for this book came from a series of personal experiences. First, as a graduate student, I remember literally lying awake at night dreading the idea of using a computer program to conduct statistical analyses. The first statistics course I took required Stata to complete the assignments and the final research project. This necessity was so overwhelming at the time, in part, because there did not seem to be any straightforward, concise texts explaining the basics of Stata. During my time in graduate school, I came to be very familiar with Stata, even to the point that I developed a serious passion for both learning Stata and teaching it to students who were facing the same fears I once did. When I first began teaching a course on quantitative analysis, I was hoping to use Stata as a significant portion of the classroom experience and requirements. Yet in a somewhat mirrored experience from when I was a student, I soon realized that there still was not a manageable introductory text on the use of Stata for quantitative research.1 Thus, I sought to contribute to filling this void by providing a straightforward, applied introduction to using Stata.
1 Assuredly, there are several very good and effective texts on learning Stata. Virtually all of these, however, are aimed at experienced users or are so detailed and long that they are not helpful for a typical classroom in which teaching Stata is not the primary purpose.
This book will be most beneficial to readers who are novices when it comes to Stata but are at least in the early stages of learning strategies for conducting quantitative analysis. It does assume that the reader has a working knowledge of basic statistical techniques and terminology. The organization and coverage of the book is guided by the content and ordering of topics found in most introductory social statistics textbooks. In this manner, it can serve as an excellent companion, for either a class or a self-learner, to such a textbook.
To be clear, this book should not be used to learn statistics or quantitative analysis. Some basic assumptions and explanations are provided, but these should not be used in place of a more thorough coverage of each of the analytic strategies. The statistical grounding for this book is based primarily on Frankfort-Nachmias and Leon-Guerrero’s Social Statistics for a Diverse Society (2010). The definitions and interpretations of the specific measures and tests are based on those presented in this text. Of course, any inaccuracies or mistakes are solely mine.
Also, this book does not attempt to cover every aspect of each Stata command that is introduced. More experienced users undoubtedly know shortcuts or alternative methods for the techniques that are presented. The given description has been geared to introduce complete novice users to Stata. This targeted audience requires that the explanation start with the basics before jumping into the advanced features. The presented commands and procedures are discussed because they are the most simplified strategies that effectively accomplish the pertinent goals.
About the National Study of Youth and Religion
The data for this book come from the National Study of Youth and Religion (NSYR). The NSYR is a longitudinal, nationally representative telephone survey of U.S. young adults. There are three waves of data, all of which are publically available.
The variables that are used in the examples throughout this book come from the second follow-up survey of 2,532 young adults completed in the fall of 2007. At the time of this survey, the respondents were all between the ages of 18 and 24. Each respondent completed a computer-assisted telephone interviewing survey that lasted approximately an hour. This data set covers a broad array of topics, making it possible, across examples, to use variables pertinent to several disciplines. For example, it contains several standard self-esteem measures of interest to psychologists, a wide array of questions on religion useful for sociologists, numerous questions