Download presentation
Presentation is loading. Please wait.
1
Do Statistical Analysis with Stata
2
Stata
3
Load data 1
4
Load data 2 use "D:\User_Data\Desktop\LaborDispute11.dta", clear
5
Describe data des Or des variable
6
Describe data
7
Tabulate tab female type, chi
8
Tab result
9
Recode variables tab v53 tab v53, nolabel
10
Recode variables recode v53 (1=0) (2=1), gen(female) tab female
11
Recode variables Sometimes you need to beware of the missing values.
But, the missing value in our data has been coded with a specific number such as 8 or 9 or 98. Simply recoding them to “.” will do.
12
Bar chart Show the mean of “requestamount” by “type.”
13
Bar chart
14
Bar chart
15
Bar chart
16
Bar chart
17
Bar chart
18
Bar chart
19
Bar chart
20
Two-sample mean comparison test
21
Two-sample mean comparison test
ttest requestamount == settleamount, unpaired
22
Two-group mean comparison test
23
Two-group mean comparison test
24
Two-group mean comparison test
ttest requestamount, by(female)
25
Two-group proportion test
26
Two-group proportion test
27
Two-group proportion test
prtest v12, by(female)
28
Thank you for your attention.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.