SlideShare a Scribd company logo
1 of 10
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 disciplinesTanveerRehman4
 
Public health planning in India
Public health planning in IndiaPublic health planning in India
Public health planning in IndiaTanveerRehman4
 
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 IITanveerRehman4
 
Surveillance and contact tracing
Surveillance and contact tracingSurveillance and contact tracing
Surveillance and contact tracingTanveerRehman4
 
Studies in health economics
Studies in health economicsStudies in health economics
Studies in health economicsTanveerRehman4
 
Ayushman bharat scheme
Ayushman bharat schemeAyushman bharat scheme
Ayushman bharat schemeTanveerRehman4
 
International Health Regulations
International Health RegulationsInternational Health Regulations
International Health RegulationsTanveerRehman4
 
Statistical distributions
Statistical distributionsStatistical distributions
Statistical distributionsTanveerRehman4
 
Acute Respiratory Infections / Pneumonia
Acute Respiratory Infections / PneumoniaAcute Respiratory Infections / Pneumonia
Acute Respiratory Infections / PneumoniaTanveerRehman4
 

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

Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一F La
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhijennyeacort
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...ThinkInnovation
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理e4aez8ss
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Cantervoginip
 

Recently uploaded (20)

Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
办理(Vancouver毕业证书)加拿大温哥华岛大学毕业证成绩单原版一比一
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
 
ASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel CanterASML's Taxonomy Adventure by Daniel Canter
ASML's Taxonomy Adventure by Daniel Canter
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 

Basic STATA Analysis: Numeric, Coding, Dummy Variables

  • 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