Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Data Analysis with STATA

You're reading from  Data Analysis with STATA

Product type Book
Published in Oct 2015
Publisher Packt
ISBN-13 9781782173175
Pages 176 pages
Edition 1st Edition
Languages

Table of Contents (16) Chapters

Data Analysis with Stata
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Introduction to Stata and Data Analytics Stata Programming and Data Management Data Visualization Important Statistical Tests in Stata Linear Regression in Stata Logistic Regression in Stata Survey Analysis in Stata Time Series Analysis in Stata Survival Analysis in Stata Index

Applications and code in Stata for survival analysis


The main objective of the HEDIS data is to predict in how much time the patient will go back to drug use after taking medicines. Here, we have divided the patients into two groups and have given two different lines of treatment: medicine=0 for short term and medicine =2 for longer term. The patients were divided into two sets: set=0 is set α and set= 1 is set β. In the following table, variable age = enrollment age, medth= methodus, and glycol= glycomet used by patients in the last 4 months. The medth1 variable denotes methodus use/glycomet use and medth2 denotes either methodus or glycomet use; however, medth3 denotes neither methodus nor glycomet use. The metfomindrug variable denotes the past medicine used and the line of treatment. The variable time denotes the times in which the patient goes back to the drug use, and the patient response denotes whether the patient came back. Patient response1 denotes a return to medicine use and...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}