- 176 pages
- English
- ePUB (mobile friendly)
- Only available on web
A Comprehensive Guide to Coding and Programming in Stata
About This Book
This book is an introductory guide to programming and coding in Stata. Commonly encountered code in the field of medical statistics as well as the analyses of observational data are presented.
For those who are involved in the analyses of observational studies, the need to sometimes assemble large datasets will necessitate a detailed understanding of loops and macros. This book covers these materials early on and then describes other commonly required coding commands.
For those who program in a controlled environment (.e.g. medical statisticians who perform analyses for regulatory bodies), the production of log files, a suggested folder structure and analysis pathway are covered. This book also includes a wide range of tabulation commands and other methods of producing tables of descriptive statistics. The text also then provides a clear explanation of how to perform some inferential analyses (including how to extract and format the coefficients for use in subsequent reports).
The focus on coding allows beginners to grasp the basics of coding and programming, as well as allowing established researchers to hone their skills and become more advanced programmers.
Key Features:
- Covers the fundamental of using and understanding Stata.
- Able to be used by anyone looking to learn the basics of coding.
- Introduces and explains difficult concepts such as macros from the outset.
Frequently asked questions
Information
Table of contents
- Cover
- Half Title
- Title Page
- Copyright Page
- Contents
- Foreword
- About the Author
- Chapter 1 ■ Introduction
- Chapter 2 ■ Temporary Names, Variables and Files
- Chapter 3 ■ Macros and Other Data Storage Mechanisms Used by Stata
- Chapter 4 ■ Variables, Variable Names, Value Label Names, Value Labels and Values
- Chapter 5 ■ Loops
- Chapter 6 ■ Append, Merge and Collapse
- Chapter 7 ■ Reshape
- Chapter 8 ■ Dates
- Chapter 9 ■ Bits and Bobs
- Chapter 10 ■ Helpful Hints When Doing Regression
- Chapter 11 ■ Time Series Operators and Survival Analyses
- Chapter 12 ■ Exporting Output
- Chapter 13 ■ Stata Programming
- Chapter 14 ■ Tables of Baseline Characteristics
- Chapter 15 ■ Automated Reporting
- Chapter 16 ■ pretty_suite Packages for Easy Tables
- Chapter 17 ■ Tables with Output from Statistical Tests
- Index