This document provides an overview of basic analysis techniques in STATA. It discusses how to work with numeric, categorical, and dummy variable data, including describing, summarizing, coding, labeling, generating dummy variables, and working with categorical data using commands like codebook, tabulate, and recode. It also covers tests for unpaired dichotomous data sets using commands like tabi, prtesti, and tabplot. Finally, it discusses graphical representation of data using pie charts, box plots, histograms, and scatter plots.
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
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