-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPalu_data_analysis.do
More file actions
72 lines (51 loc) · 1.18 KB
/
Copy pathPalu_data_analysis.do
File metadata and controls
72 lines (51 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
**----
clear all
set more off
cd "C:/Users/HP/palu_project/Nouveau dossier/data"
log using log_file.txt , text replace
**------
use "donnees.data" , clear
**-----
des
**-------
tab Country
tab Years
*--------
label variable Palu " paludisme"
label variable Temp " temperature"
label variable Prec " precipitation"
label variable PIBh " le PIB du pays"
**--------
global $ylist Palu
global $xlist Temp PIBh Prec
**------
sum $list $xlist
bysort Country :sum $ylist $xlist
*-----
bysort Years :sum $xlist $ylist
*---------
kdensity Palu if Country=="Benin"
*-------
sort Country
xi , prefix(), i.Country
*------------
****------
correl $ylist $xlist
graph twoway (scatter Palu Temp )( lfit Palu Temp)
graph twoway ( scatter Palu Prec )(lfit Palu Prec)
graph twoway ( scatter Palu PIBh)(lfit Palu PIBh)
***-----
***-----
reg Palu Temp, robust
reg Palu PIBh , robust
reg Palu Prec, robust
*-------------
ttest Temp==0
ttest Prec==0
ttest PIBh==0
ttest Temp==Prec
*--------
reg $ylist $xlist , robust
*-----------------
xi: reg $ylist $xlist i.Country
log close