O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Data Analysis with Stata

Book Description

Explore the big data field and learn how to perform data analytics and predictive modelling in STATA

About This Book

  • Visualize and analyse data in STATA to devise a business strategy
  • Learn STATA programming and predictive modeling
  • Discover how you can become a data scientist with the power of STATA

Who This Book Is For

This book is for all the professionals and students who want to learn STATA programming and apply predictive modelling concepts. This book is also very helpful for experienced STATA programmers as it provides advanced statistical modelling concepts and their application.

What You Will Learn

  • Perform important statistical tests to become a STATA data scientist
  • Be guided through how to program in STATA
  • Implement logistic and linear regression models
  • Visualize and program the data in STATA
  • Analyse survey data, time series data, and survival data
  • Perform database management in STATA

In Detail

STATA is an integrated software package that provides you with everything you need for data analysis, data management, and graphics. STATA also provides you with a platform to efficiently perform simulation, regression analysis (linear and multiple) [and custom programming.

This book covers data management, graphs visualization, and programming in STATA. Starting with an introduction to STATA and data analytics you’ll move on to STATA programming and data management. Next, the book takes you through data visualization and all the important statistical tests in STATA. Linear and logistic regression in STATA is also covered.

As you progress through the book, you will explore a few analyses, including the survey analysis, time series analysis, and survival analysis in STATA. You’ll also discover different types of statistical modelling techniques and learn how to implement these techniques in STATA.

Style and approach

This book is a hands-onguide to STATA programming and statistical modelling providing many STATA code examples and taking. You through the working of the code in detail.

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.

Table of Contents

  1. Data Analysis with Stata
    1. Table of Contents
    2. Data Analysis with Stata
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers, and more
        1. Why subscribe?
        2. Free access for Packt account holders
        3. Instant updates on new Packt books
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Downloading the color images of this book
        3. Errata
        4. Piracy
        5. Questions
    8. 1. Introduction to Stata and Data Analytics
      1. Introducing data analytics
      2. The Stata interface
      3. Data-storing techniques in Stata
      4. Directories and folders in Stata
      5. Reading data in Stata
        1. Insheet
        2. Infix
        3. The Stat/Transfer program
          1. Manual typing or copy and paste
      6. Variables and data types
        1. Indicators or data variables
        2. Examining the data
          1. How to subset the data file using IN and IF
      7. Summary
    9. 2. Stata Programming and Data Management
      1. The labeling of data, variables, and variable transformations
      2. Summarizing the data and preparing tabulated reports
      3. Appending and merging the files for data management
      4. Macros
      5. Loops in Stata
        1. While loops
      6. Summary
    10. 3. Data Visualization
      1. Scatter plots
      2. Line plots
      3. Histograms and other charts
      4. Box plots
      5. Pie charts
      6. Pyramidal graphs
      7. Vio plots
      8. Ci plots
      9. Statistical calculations in graphs
      10. Curve fitting in Stata
      11. Summary
    11. 4. Important Statistical Tests in Stata
      1. T tests
        1. Two independent sample t tests
      2. The chi-square goodness of fit test
      3. ANOVA
        1. One-way repeated ANOVA measures
      4. MANOVA
      5. Fisher's exact test
      6. The Wilcoxon-Mann-Whitney test
      7. Summary
    12. 5. Linear Regression in Stata
      1. Linear regression
        1. Linear regression code in Stata
      2. Variance inflation factor and multicollinearity
      3. Homoscedasticity
      4. Summary
    13. 6. Logistic Regression in Stata
      1. The logistic regression concept
        1. Logit
      2. Logistic regression in Stata
      3. Logistic regression for finance (loans and credit cards)
      4. Summary
    14. 7. Survey Analysis in Stata
      1. Survey analysis concepts
      2. Survey analysis in Stata code
      3. Cluster sampling
      4. Summary
    15. 8. Time Series Analysis in Stata
      1. Time series analysis concepts
      2. Code for time series analysis in Stata
      3. Summary
    16. 9. Survival Analysis in Stata
      1. Survival analysis concepts
      2. Applications and code in Stata for survival analysis
      3. Building a model
      4. Proportionality assumption
      5. Summary
    17. Index