Hi everyone,
Our outcome variable is birthweight and independent variables are antenatal care, age, education
We want to apply PSM on it and we are looking for the commands on that since we are having a trouble running the commands
Here is our sample data set
Our outcome variable is birthweight and independent variables are antenatal care, age, education
We want to apply PSM on it and we are looking for the commands on that since we are having a trouble running the commands
Here is our sample data set
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input double birthweight byte(antenatalcare age edu)
2 1 22 4
4 1 35 1
3 1 34 4
2.724 1 35 3
3 1 30 3
2 1 33 4
2.25 1 34 3
2.5 1 37 2
4 1 32 3
9.998 1 26 2
5 1 23 4
2.3 1 25 2
1 1 24 .
9.999 2 20 .
3.5 1 24 .
9.998 1 34 .
3 1 22 .
.898 1 32 3
2.5 1 20 4
9.998 1 29 4
3 1 20 1
9.998 1 37 .
2 1 31 2
9.998 1 30 3
1 1 26 .
3 2 27 .
2 1 33 2
5 1 29 .
3 1 25 3
9.998 1 31 .
1.635 1 37 4
5 2 35 .
9.998 2 24 .
2.5 1 37 .
.98 1 28 4
1.362 1 35 .
3 1 36 .
2.05 1 46 .
9.998 1 40 1
2.11 1 35 .
6 1 22 3
3 1 35 2
3 1 34 3
1 1 24 2
3 1 28 1
3 1 40 4
1 1 30 .
3 1 40 .
3.5 1 30 .
3.2 1 27 .
1.5 1 30 .
3 1 28 1
2 1 25 .
3 1 27 3
2 2 25 .
2.5 1 19 2
9.999 1 22 3
2 1 20 1
1 1 27 2
1.5 1 25 .
1.5 1 31 3
3 1 28 3
1.5 1 34 2
9.998 1 28 3
3 1 25 .
3 1 20 .
1.5 1 28 2
3 1 27 4
3 1 25 1
1 2 20 2
9.998 1 20 .
5 1 47 3
9.999 1 28 4
.908 1 29 4
1.3 2 31 3
3 2 27 4
3 1 27 4
1 2 33 0
1 2 30 4
1 2 25 .
2 1 24 .
9.998 1 34 .
2.5 1 34 1
9.999 1 33 .
2.5 1 34 4
2.5 1 40 1
1.362 1 25 .
1.362 2 23 1
1 2 34 .
3 1 40 2
2 1 24 4
1.136 1 27 1
9.998 1 22 .
2 2 21 1
2 2 24 1
2 1 28 .
2.5 2 30 .
3 1 34 1
4 1 37 .
2.27 1 29 .
end
label values birthweight labels136
label values antenatalcare labels77
label def labels77 1 "YES", modify
label def labels77 2 "NO", modify
label values age labels17
label values education labels19
label def labels19 0 "ECE", modify
label def labels19 1 "PRIMARY", modify
label def labels19 2 "LOWER SECONDARY", modify
label def labels19 3 "UPPER SECONDARY", modify
label def labels19 4 "HIGHER", modify
