SlideShare a Scribd company logo
Basic Analysis in STATA
Dr Tanveer Rehman, Senior Resident
NUMERIC DATA
• browse
• describe
• count
• summarize
• sum age, detail
09-09-2020 2
NUMERIC DATA
• mean BMI
• ameans BMI
• tabstat age, by (sex) statistics (n mean sd median iqr min max)
• tabstat age duration hours, statistics (n mean sd median iqr min
max) column (statistics)
09-09-2020 3
CODING & LABELLING
• rename
• recode
• label define label block
• label values variable label block
• label variable
09-09-2020 4
DUMMY VARIABLE
• Indicator variable
• Explanatory variables taking 2 values: Yes / No – 1 / 0
• generate & replace
• tabulate & generate (dummy var)
• browse new variable* variable
09-09-2020 5
CATEGORICAL DATA
• codebook
• tabulate
• tab1
• missing
• tab var var
09-09-2020 6
CATEGORICAL DATA
• row column cell
• tab2
• firstonly
• Three way table
• Four way table
09-09-2020 7
TEST FOR UNPAIRED DICHOTOMOUS DATA SETS
• Immediate form tabi: 1 2  3 4
• Options: chi2, exact, expected
• tests of proportions: prtesti freq prop
• tabplot for visual impression
• Use of “if”
09-09-2020 8
THANK YOU
09-09-2020 9
Graphical representation
1. Graph pie, over(sex)
2. Graph box age, over (sex) orelse hbox
3. Histogram age, normal by(sex)
4. Twoway (scatter var var)
09-09-2020 10

More Related Content

More from TanveerRehman4

Public health disciplines
Public health disciplinesPublic health disciplines
Public health disciplines
TanveerRehman4
 
Public health planning in India
Public health planning in IndiaPublic health planning in India
Public health planning in India
TanveerRehman4
 
Water borne diseases (bacterial)
Water borne diseases (bacterial)Water borne diseases (bacterial)
Water borne diseases (bacterial)
TanveerRehman4
 
Developing counter strategy for Information warfare in Health Sector – siftin...
Developing counter strategy for Information warfare in Health Sector – siftin...Developing counter strategy for Information warfare in Health Sector – siftin...
Developing counter strategy for Information warfare in Health Sector – siftin...
TanveerRehman4
 
Medical Entomology Part II
Medical Entomology Part IIMedical Entomology Part II
Medical Entomology Part II
TanveerRehman4
 
Surveillance and contact tracing
Surveillance and contact tracingSurveillance and contact tracing
Surveillance and contact tracing
TanveerRehman4
 
Team building
Team buildingTeam building
Team building
TanveerRehman4
 
Diabetes Mellitus
Diabetes MellitusDiabetes Mellitus
Diabetes Mellitus
TanveerRehman4
 
Studies in health economics
Studies in health economicsStudies in health economics
Studies in health economics
TanveerRehman4
 
RNTCP Changes in 2018
RNTCP Changes in 2018RNTCP Changes in 2018
RNTCP Changes in 2018
TanveerRehman4
 
Nipah virus
Nipah virusNipah virus
Nipah virus
TanveerRehman4
 
Ayushman bharat scheme
Ayushman bharat schemeAyushman bharat scheme
Ayushman bharat scheme
TanveerRehman4
 
International Health Regulations
International Health RegulationsInternational Health Regulations
International Health Regulations
TanveerRehman4
 
Statistical distributions
Statistical distributionsStatistical distributions
Statistical distributions
TanveerRehman4
 
Acute Respiratory Infections / Pneumonia
Acute Respiratory Infections / PneumoniaAcute Respiratory Infections / Pneumonia
Acute Respiratory Infections / Pneumonia
TanveerRehman4
 
Cohort Study
Cohort Study Cohort Study
Cohort Study
TanveerRehman4
 

More from TanveerRehman4 (16)

Public health disciplines
Public health disciplinesPublic health disciplines
Public health disciplines
 
Public health planning in India
Public health planning in IndiaPublic health planning in India
Public health planning in India
 
Water borne diseases (bacterial)
Water borne diseases (bacterial)Water borne diseases (bacterial)
Water borne diseases (bacterial)
 
Developing counter strategy for Information warfare in Health Sector – siftin...
Developing counter strategy for Information warfare in Health Sector – siftin...Developing counter strategy for Information warfare in Health Sector – siftin...
Developing counter strategy for Information warfare in Health Sector – siftin...
 
Medical Entomology Part II
Medical Entomology Part IIMedical Entomology Part II
Medical Entomology Part II
 
Surveillance and contact tracing
Surveillance and contact tracingSurveillance and contact tracing
Surveillance and contact tracing
 
Team building
Team buildingTeam building
Team building
 
Diabetes Mellitus
Diabetes MellitusDiabetes Mellitus
Diabetes Mellitus
 
Studies in health economics
Studies in health economicsStudies in health economics
Studies in health economics
 
RNTCP Changes in 2018
RNTCP Changes in 2018RNTCP Changes in 2018
RNTCP Changes in 2018
 
Nipah virus
Nipah virusNipah virus
Nipah virus
 
Ayushman bharat scheme
Ayushman bharat schemeAyushman bharat scheme
Ayushman bharat scheme
 
International Health Regulations
International Health RegulationsInternational Health Regulations
International Health Regulations
 
Statistical distributions
Statistical distributionsStatistical distributions
Statistical distributions
 
Acute Respiratory Infections / Pneumonia
Acute Respiratory Infections / PneumoniaAcute Respiratory Infections / Pneumonia
Acute Respiratory Infections / Pneumonia
 
Cohort Study
Cohort Study Cohort Study
Cohort Study
 

Recently uploaded

Drownings spike from May to August in children
Drownings spike from May to August in childrenDrownings spike from May to August in children
Drownings spike from May to August in children
Bisnar Chase Personal Injury Attorneys
 
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
ywqeos
 
一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理
一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理
一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理
hqfek
 
一比一原版莱斯大学毕业证(rice毕业证)如何办理
一比一原版莱斯大学毕业证(rice毕业证)如何办理一比一原版莱斯大学毕业证(rice毕业证)如何办理
一比一原版莱斯大学毕业证(rice毕业证)如何办理
zsafxbf
 
Template xxxxxxxx ssssssssssss Sertifikat.pptx
Template xxxxxxxx ssssssssssss Sertifikat.pptxTemplate xxxxxxxx ssssssssssss Sertifikat.pptx
Template xxxxxxxx ssssssssssss Sertifikat.pptx
TeukuEriSyahputra
 
一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理
一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理
一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理
aguty
 
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
oaxefes
 
Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7
Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7
Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7
nitachopra
 
Senior Engineering Sample EM DOE - Sheet1.pdf
Senior Engineering Sample EM DOE  - Sheet1.pdfSenior Engineering Sample EM DOE  - Sheet1.pdf
Senior Engineering Sample EM DOE - Sheet1.pdf
Vineet
 
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
Timothy Spann
 
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
agdhot
 
Call Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
Call Girls Lucknow 0000000000 Independent Call Girl Service LucknowCall Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
Call Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
hiju9823
 
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
uevausa
 
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
eoxhsaa
 
06-18-2024-Princeton Meetup-Introduction to Milvus
06-18-2024-Princeton Meetup-Introduction to Milvus06-18-2024-Princeton Meetup-Introduction to Milvus
06-18-2024-Princeton Meetup-Introduction to Milvus
Timothy Spann
 
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
osoyvvf
 
Do People Really Know Their Fertility Intentions? Correspondence between Sel...
Do People Really Know Their Fertility Intentions?  Correspondence between Sel...Do People Really Know Their Fertility Intentions?  Correspondence between Sel...
Do People Really Know Their Fertility Intentions? Correspondence between Sel...
Xiao Xu
 
Sample Devops SRE Product Companies .pdf
Sample Devops SRE  Product Companies .pdfSample Devops SRE  Product Companies .pdf
Sample Devops SRE Product Companies .pdf
Vineet
 
PyData London 2024: Mistakes were made (Dr. Rebecca Bilbro)
PyData London 2024: Mistakes were made (Dr. Rebecca Bilbro)PyData London 2024: Mistakes were made (Dr. Rebecca Bilbro)
PyData London 2024: Mistakes were made (Dr. Rebecca Bilbro)
Rebecca Bilbro
 
Call Girls Hyderabad (india) ☎️ +91-7426014248 Hyderabad Call Girl
Call Girls Hyderabad  (india) ☎️ +91-7426014248 Hyderabad  Call GirlCall Girls Hyderabad  (india) ☎️ +91-7426014248 Hyderabad  Call Girl
Call Girls Hyderabad (india) ☎️ +91-7426014248 Hyderabad Call Girl
sapna sharmap11
 

Recently uploaded (20)

Drownings spike from May to August in children
Drownings spike from May to August in childrenDrownings spike from May to August in children
Drownings spike from May to August in children
 
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
一比一原版(lbs毕业证书)伦敦商学院毕业证如何办理
 
一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理
一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理
一比一原版爱尔兰都柏林大学毕业证(本硕)ucd学位证书如何办理
 
一比一原版莱斯大学毕业证(rice毕业证)如何办理
一比一原版莱斯大学毕业证(rice毕业证)如何办理一比一原版莱斯大学毕业证(rice毕业证)如何办理
一比一原版莱斯大学毕业证(rice毕业证)如何办理
 
Template xxxxxxxx ssssssssssss Sertifikat.pptx
Template xxxxxxxx ssssssssssss Sertifikat.pptxTemplate xxxxxxxx ssssssssssss Sertifikat.pptx
Template xxxxxxxx ssssssssssss Sertifikat.pptx
 
一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理
一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理
一比一原版澳洲西澳大学毕业证(uwa毕业证书)如何办理
 
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
 
Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7
Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7
Call Girls Goa👉9024918724👉Low Rate Escorts in Goa 💃 Available 24/7
 
Senior Engineering Sample EM DOE - Sheet1.pdf
Senior Engineering Sample EM DOE  - Sheet1.pdfSenior Engineering Sample EM DOE  - Sheet1.pdf
Senior Engineering Sample EM DOE - Sheet1.pdf
 
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
06-20-2024-AI Camp Meetup-Unstructured Data and Vector Databases
 
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
一比一原版加拿大麦吉尔大学毕业证(mcgill毕业证书)如何办理
 
Call Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
Call Girls Lucknow 0000000000 Independent Call Girl Service LucknowCall Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
Call Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
 
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
一比一原版加拿大渥太华大学毕业证(uottawa毕业证书)如何办理
 
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
 
06-18-2024-Princeton Meetup-Introduction to Milvus
06-18-2024-Princeton Meetup-Introduction to Milvus06-18-2024-Princeton Meetup-Introduction to Milvus
06-18-2024-Princeton Meetup-Introduction to Milvus
 
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
 
Do People Really Know Their Fertility Intentions? Correspondence between Sel...
Do People Really Know Their Fertility Intentions?  Correspondence between Sel...Do People Really Know Their Fertility Intentions?  Correspondence between Sel...
Do People Really Know Their Fertility Intentions? Correspondence between Sel...
 
Sample Devops SRE Product Companies .pdf
Sample Devops SRE  Product Companies .pdfSample Devops SRE  Product Companies .pdf
Sample Devops SRE Product Companies .pdf
 
PyData London 2024: Mistakes were made (Dr. Rebecca Bilbro)
PyData London 2024: Mistakes were made (Dr. Rebecca Bilbro)PyData London 2024: Mistakes were made (Dr. Rebecca Bilbro)
PyData London 2024: Mistakes were made (Dr. Rebecca Bilbro)
 
Call Girls Hyderabad (india) ☎️ +91-7426014248 Hyderabad Call Girl
Call Girls Hyderabad  (india) ☎️ +91-7426014248 Hyderabad  Call GirlCall Girls Hyderabad  (india) ☎️ +91-7426014248 Hyderabad  Call Girl
Call Girls Hyderabad (india) ☎️ +91-7426014248 Hyderabad Call Girl
 

STATA - Basics of Analysis & Commands

  • 1. Basic Analysis in STATA Dr Tanveer Rehman, Senior Resident
  • 2. NUMERIC DATA • browse • describe • count • summarize • sum age, detail 09-09-2020 2
  • 3. NUMERIC DATA • mean BMI • ameans BMI • tabstat age, by (sex) statistics (n mean sd median iqr min max) • tabstat age duration hours, statistics (n mean sd median iqr min max) column (statistics) 09-09-2020 3
  • 4. CODING & LABELLING • rename • recode • label define label block • label values variable label block • label variable 09-09-2020 4
  • 5. DUMMY VARIABLE • Indicator variable • Explanatory variables taking 2 values: Yes / No – 1 / 0 • generate & replace • tabulate & generate (dummy var) • browse new variable* variable 09-09-2020 5
  • 6. CATEGORICAL DATA • codebook • tabulate • tab1 • missing • tab var var 09-09-2020 6
  • 7. CATEGORICAL DATA • row column cell • tab2 • firstonly • Three way table • Four way table 09-09-2020 7
  • 8. TEST FOR UNPAIRED DICHOTOMOUS DATA SETS • Immediate form tabi: 1 2 3 4 • Options: chi2, exact, expected • tests of proportions: prtesti freq prop • tabplot for visual impression • Use of “if” 09-09-2020 8
  • 10. Graphical representation 1. Graph pie, over(sex) 2. Graph box age, over (sex) orelse hbox 3. Histogram age, normal by(sex) 4. Twoway (scatter var var) 09-09-2020 10

Editor's Notes

  1. Root command, labelled numeric data, Menu, header, navigate, dataset loaded, dropdown menu, icon, syntax, GUI
  2. Root command, labelled numeric data, Menu, header, navigate, dataset loaded, dropdown menu, icon, syntax, GUI
  3. As variable missing is infinite, subgroup analysis
  4. As variable missing is infinite, check key, options always come after comma, an overview
  5. As variable missing is infinite, check key, options always come after comma, an overview
  6. As variable missing is infinite, check key, options always come after comma, an overview