A visual guide to stata graphics

Solo disponible en BuenasTareas
  • Páginas : 197 (49059 palabras )
  • Descarga(s) : 0
  • Publicado : 8 de marzo de 2011
Leer documento completo
Vista previa del texto
A Visual Guide to Stata Graphics

A Visual Guide to Stata Graphics

MICHAEL N. MITCHELL University of California, Los Angeles

A Stata Press Publication StataCorp LP College Station, Texas

Stata Press, 4905 Lakeway Drive, College Station, Texas 77845

Copyright c 2004 by StataCorp LP All rights reserved A Typeset in L TEX 2ε Printed in the United States of America 10 9 8 7 6 5 4 3 21 ISBN 1-881228-85-1 This book is protected by copyright. All rights are reserved. No part of this book may be reproduced, stored in a retrieval system, or transcribed, in any form or by any means—electronic, mechanical, photocopying, recording, or otherwise—without the prior written permission of StataCorp LP.
A Stata is a registered trademark of StataCorp LP. L TEX 2ε is a trademark of theAmerican Mathematical Society.

Dedication
I would like to dedicate this book to Paul Hoffman. Although he was my supervisor for the last nine years, it always felt much more like he was a trusted friend always there to help me do the best work that I could. I am so sorry he had so leave us so soon. In my own way, I hope that I can give to others the same kinds of things he gave to me. I am reallygoing to miss you, Paul.

Acknowledgments
Although there is a single name on the cover of this book, many people have helped to make this book possible. Without them, this book would have remained a dream, and I could have never shared it with you. I want to thank those people who helped that dream become the book you are now holding. I want to thank the warm people at Stata, who were verygenerous in their assistance and who always find a way to be friendly and helpful. In particular, I wish to thank Vince Wiggins for his generosity of time, insightful advice, boundless enthusiasm, and commitment to help make this book the best that it could be. I am very grateful to Jeff Pitblado, who A created the L TEX tools that made the layout of this book possible. Without the benefit of A histime and talent, I would still be learning L TEX instead of writing these acknowledgments. Also, I would like to thank the Stata technical support team, especially Derek Wagner, for patiently working with me on my numerous questions. I am also very grateful to John Williams for his thoroughness and alacrity in editing the book and to Chinh Nguyen for his creative and clever cover design. I also wantto thank, in alphabetical order, Xiao Chen, Phil Ender, Frauke Kreuter, and Christine Wells for their support and suggestions. Last, and certainly not least, I would like to thank the teachers who have added to my life in very special ways. I have been very fortunate to have been touched by many special teachers, and I will always be grateful for what they kindly gave to me. I want to thank (inorder of appearance) Larry Grossman, Fred Perske, Rosemary Sheridan, Donald Butler, Jim Torcivia, Richard O’Connell, Linda Fidell, and Jim Sidanius. These teachers all left me gifts of knowledge and life lessons that help me every day. Even if they do not all remember me, I will always remember them.

Contents
Dedication Acknowledgments Preface 1 Introduction 1.1 1.2 1.3 1.4 1.5 Using thisbook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Types of Stata graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Building graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vvii xiii 1 1 4 14 20 29 35 35 49 50 54 61 62 64 74 82 87 95 95 98 102

2 Twoway graphs 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 2.10 Scatterplots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Regression fits and splines . . . . . . . . . . . . . . . . . . . . . . . . . . . Regression confidence interval (CI) fits . . . . . . . . . . . . . . . . . . . . Line plots . . . . . . ....
tracking img