You are on page 1of 38

.

*question 1

. list in 1

1. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 1| 1| 1 | 2200 | 1| 1000 | 3| 32 | -1000 | 1 | 5|

| satisf~e |

| 1 |

+---------------------------------------------------------------------------------------------------------+

. *question 2

. list income in 1

+--------+

| income |

|--------|

1. | 2200 |

+--------+

. *question 3

. list in -1

+---------------------------------------------------------------------------------------------------------+

39. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 39 | 4| 3 | 13334 | 2| 3000 | 2| 35 | 3500 | 2 | 1|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

. *question 4

. list in 11/16

+---------------------------------------------------------------------------------------------------------+

11. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 11 | 2| 1 | 9000 | 2| 3000 | 5| 34 | 500 | 2 | 8|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |
+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

12. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 12 | 2| 1 | -100 | 1| 300 | 8| 23 | 400 | 1 | 7|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

13. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 13 | 2| 1 | 300 | 1| 400 | 7| 56 | 300 | 2 | 8|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

14. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 14 | 2| 2 | 400 | 1| 400 | 6| 65 | 200 | 2 | 7|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

15. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 15 | 2| 2 | 500 | 1| 700 | 7| 53 | 150 | 1 | 8|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

16. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 16 | 2| 2 | 600 | 2| 650 | 6| 24 | 250 | 2 | 7|


|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

. *question 5

. list income

+--------+

| income |

|--------|

1. | 2200 |

2. | 3000 |

3. | 4000 |

4. | 5000 |

5. | 2500 |

|--------|

6. | 1000 |

7. | 4000 |

8. | 6000 |

9. | 7000 |

10. | 8000 |

|--------|

11. | 9000 |

12. | -100 |

13. | 300 |

14. | 400 |

15. | 500 |

|--------|

16. | 600 |

17. | 300 |

18. | 600 |

19. | 900 |

20. | 2000 |

|--------|

21. | 1500 |
22. | 3000 |

23. | 4000 |

24. | 3000 |

25. | 2500 |

|--------|

26. | 3500 |

27. | 1500 |

28. | 11000 |

29. | 12000 |

30. | 13000 |

|--------|

31. | 15000 |

32. | 20000 |

33. | 35000 |

34. | 45000 |

35. | 32000 |

|--------|

36. | 23000 |

37. | 24500 |

38. | 23444 |

39. | 13334 |

+--------+

. *question 6

. list priceofteff in 5/10

+----------+

| priceo~f |

|----------|

5. | 1230 |

6. | 900 |

7. | 950 |

8. | 1000 |

9. | 940 |

|----------|

10. | 1200 |
+----------+

. *question 7

. list priceofteff in 5/10,mean sum

+----------+

| priceo~f |

|----------|

5. | 1230 |

6. | 900 |

7. | 950 |

8. | 1000 |

9. | 940 |

|----------|

10. | 1200 |

|----------|

Mean | 1036.67 |

Sum | 6220 |

+----------+

. tabstat priceofteff in 5/10,stats(mean sum)

variable | mean sum

-------------+--------------------

priceofteff | 1036.667 6220

----------------------------------

. *question 8

. list in -5/-1

+---------------------------------------------------------------------------------------------------------+

35. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 35 | 4| 2 | 32000 | 2| 7000 | 2| 34 | 3000 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

36. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |
| 36 | 4| 3 | 23000 | 2| 6000 | 3| 45 | 2500 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

37. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 37 | 4| 3 | 24500 | 2| 5000 | 3| 34 | 3400 | 2 | 1|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

38. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 38 | 4| 3 | 23444 | 2| 4500 | 2| 35 | 4000 | 2 | 1|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

39. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 39 | 4| 3 | 13334 | 2| 3000 | 2| 35 | 3500 | 2 | 1|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

. *question 9

. list priceofteff if priceofteff<0

+----------+

| priceo~f |

|----------|

1. | -1000 |

+----------+
. *question 10

. list income if income >1000

+--------+

| income |

|--------|

1. | 2200 |

2. | 3000 |

3. | 4000 |

4. | 5000 |

5. | 2500 |

|--------|

7. | 4000 |

8. | 6000 |

9. | 7000 |

10. | 8000 |

11. | 9000 |

|--------|

20. | 2000 |

21. | 1500 |

22. | 3000 |

23. | 4000 |

24. | 3000 |

|--------|

25. | 2500 |

26. | 3500 |

27. | 1500 |

28. | 11000 |

29. | 12000 |

|--------|

30. | 13000 |

31. | 15000 |

32. | 20000 |

33. | 35000 |

34. | 45000 |

|--------|

35. | 32000 |

36. | 23000 |
37. | 24500 |

38. | 23444 |

39. | 13334 |

*question 11

. list income if income <2000

+--------+

| income |

|--------|

6. | 1000 |

12. | -100 |

13. | 300 |

14. | 400 |

15. | 500 |

|--------|

16. | 600 |

17. | 300 |

18. | 600 |

19. | 900 |

21. | 1500 |

|--------|

27. | 1500 |

+--------+

. *question 12

. list income if consumption >2000

+--------+

| income |

|--------|

3. | 4000 |

4. | 5000 |

5. | 2500 |

7. | 4000 |

8. | 6000 |

|--------|

9. | 7000 |

11. | 9000 |
20. | 2000 |

21. | 1500 |

22. | 3000 |

|--------|

23. | 4000 |

29. | 12000 |

31. | 15000 |

32. | 20000 |

33. | 35000 |

|--------|

34. | 45000 |

35. | 32000 |

36. | 23000 |

37. | 24500 |

38. | 23444 |

|--------|

39. | 13334 |

+--------+

. *question 13

. list if sex==2 & income>1500

+---------------------------------------------------------------------------------------------------------+

4. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 4| 1| 2 | 5000 | 2| 6000 | 5| 45 | 1000 | 2 | 4|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

5. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 5| 1| 2 | 2500 | 1| 2500 | 2| 43 | 1230 | 2 | 6|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+
+---------------------------------------------------------------------------------------------------------+

7. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 7| 1| 3 | 4000 | 2| 3500 | 13 | 23 | 950 | 2 | 8|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

11. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 11 | 2| 1 | 9000 | 2| 3000 | 5| 34 | 500 | 2 | 8|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

20. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 20 | 3| 1 | 2000 | 1| 4000 | 5| 25 | 800 | 2 | 5|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

24. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 24 | 3| 2 | 3000 | 2| 1500 | 3| 28 | 899 | 2 | 5|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

25. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 25 | 3| 3 | 2500 | 1| 1500 | 3| 27 | 900 | 2 | 5|

|---------------------------------------------------------------------------------------------------------|
| satisf~e |

| 1 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

26. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 26 | 3| 3 | 3500 | 2| 1400 | 3| 27 | 780 | 2 | 4|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 1 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

28. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 28 | 4| 1 | 11000 | 2| 2000 | 2| 25 | 3000 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 1 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

29. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 29 | 4| 1 | 12000 | 2| 3000 | 3| 23 | 4000 | 2 | 1|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 1 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

30. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 30 | 4| 1 | 13000 | 2| 1200 | 3| 36 | 4500 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 1 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+
31. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 31 | 4| 2 | 15000 | 2| 4000 | 2| 36 | 3400 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

32. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 32 | 4| 2 | 20000 | 2| 5000 | 2| 34 | 7000 | 2 | 1|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

33. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 33 | 4| 2 | 35000 | 2| 8000 | 2| 35 | 5600 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

34. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 34 | 4| 2 | 45000 | 2 | 90000 | 1| 35 | 2340 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

35. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 35 | 4| 2 | 32000 | 2| 7000 | 2| 34 | 3000 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |
+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

36. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 36 | 4| 3 | 23000 | 2| 6000 | 3| 45 | 2500 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

37. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 37 | 4| 3 | 24500 | 2| 5000 | 3| 34 | 3400 | 2 | 1|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

38. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 38 | 4| 3 | 23444 | 2| 4500 | 2| 35 | 4000 | 2 | 1|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

39. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 39 | 4| 3 | 13334 | 2| 3000 | 2| 35 | 3500 | 2 | 1|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

. *question 14

. list if income==.
. *question 15

. list if priceofteff<0

+---------------------------------------------------------------------------------------------------------+

1. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 1| 1| 1 | 2200 | 1| 1000 | 3| 32 | -1000 | 1 | 5|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 1 |

+---------------------------------------------------------------------------------------------------------+

. *question 16

. list if employed==2| ageofhhhead>40

+---------------------------------------------------------------------------------------------------------+

3. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 3| 1| 1 | 4000 | 2| 2500 | 4| 43 | 1300 | 1 | 5|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 1 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

4. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 4| 1| 2 | 5000 | 2| 6000 | 5| 45 | 1000 | 2 | 4|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

5. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 5| 1| 2 | 2500 | 1| 2500 | 2| 43 | 1230 | 2 | 6|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+
+---------------------------------------------------------------------------------------------------------+

7. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 7| 1| 3 | 4000 | 2| 3500 | 13 | 23 | 950 | 2 | 8|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

8. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 8| 1| 3 | 6000 | 2| 5000 | 14 | 45 | 1000 | 1 | 3|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

9. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 9| 1| 3 | 7000 | 2| 6500 | 3| 64 | 940 | 1 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

10. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 10 | 1| 3 | 8000 | 2| 2000 | 4| 43 | 1200 | 1 | 3|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

11. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 11 | 2| 1 | 9000 | 2| 3000 | 5| 34 | 500 | 2 | 8|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |
| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

13. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 13 | 2| 1 | 300 | 1| 400 | 7| 56 | 300 | 2 | 8|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

14. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 14 | 2| 2 | 400 | 1| 400 | 6| 65 | 200 | 2 | 7|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

15. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 15 | 2| 2 | 500 | 1| 700 | 7| 53 | 150 | 1 | 8|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

16. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 16 | 2| 2 | 600 | 2| 650 | 6| 24 | 250 | 2 | 7|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

17. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |
| 17 | 2| 3 | 300 | 2| 500 | 7| 37 | 450 | 2 | 8|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

23. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 23 | 3| 2 | 4000 | 2| 3000 | 5| 30 | 750 | 1 | 6|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

24. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 24 | 3| 2 | 3000 | 2| 1500 | 3| 28 | 899 | 2 | 5|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

26. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 26 | 3| 3 | 3500 | 2| 1400 | 3| 27 | 780 | 2 | 4|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 1 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

28. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 28 | 4| 1 | 11000 | 2| 2000 | 2| 25 | 3000 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 1 |

+---------------------------------------------------------------------------------------------------------+
+---------------------------------------------------------------------------------------------------------+

29. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 29 | 4| 1 | 12000 | 2| 3000 | 3| 23 | 4000 | 2 | 1|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 1 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

30. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 30 | 4| 1 | 13000 | 2| 1200 | 3| 36 | 4500 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 1 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

31. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 31 | 4| 2 | 15000 | 2| 4000 | 2| 36 | 3400 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

32. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 32 | 4| 2 | 20000 | 2| 5000 | 2| 34 | 7000 | 2 | 1|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

33. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 33 | 4| 2 | 35000 | 2| 8000 | 2| 35 | 5600 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|
| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

34. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 34 | 4| 2 | 45000 | 2 | 90000 | 1| 35 | 2340 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

35. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 35 | 4| 2 | 32000 | 2| 7000 | 2| 34 | 3000 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

36. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 36 | 4| 3 | 23000 | 2| 6000 | 3| 45 | 2500 | 2 | 2|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

37. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 37 | 4| 3 | 24500 | 2| 5000 | 3| 34 | 3400 | 2 | 1|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+
38. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 38 | 4| 3 | 23444 | 2| 4500 | 2| 35 | 4000 | 2 | 1|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

39. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 39 | 4| 3 | 13334 | 2| 3000 | 2| 35 | 3500 | 2 | 1|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

. *question 17

. list if sex==1 & income >2000& employed==2

+---------------------------------------------------------------------------------------------------------+

3. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 3| 1| 1 | 4000 | 2| 2500 | 4| 43 | 1300 | 1 | 5|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 1 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

8. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 8| 1| 3 | 6000 | 2| 5000 | 14 | 45 | 1000 | 1 | 3|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 2 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

9. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 9| 1| 3 | 7000 | 2| 6500 | 3| 64 | 940 | 1 | 2|

|---------------------------------------------------------------------------------------------------------|
| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

10. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 10 | 1| 3 | 8000 | 2| 2000 | 4| 43 | 1200 | 1 | 3|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------------------+

23. | hhid | region | woreda | income | employed | consum~n | numbof~u | ageofh~d | priceo~f | sex | happin~s |

| 23 | 3| 2 | 4000 | 2| 3000 | 5| 30 | 750 | 1 | 6|

|---------------------------------------------------------------------------------------------------------|

| satisf~e |

| 3 |

+---------------------------------------------------------------------------------------------------------+

. *question 18

. list sex employed region income if sex==1 & region==1 & income>2000

+----------------------------------+

| sex employed region income |

|----------------------------------|

1. | 1 1 1 2200 |

2. | 1 1 1 3000 |

3. | 1 2 1 4000 |

8. | 1 2 1 6000 |

9. | 1 2 1 7000 |

|----------------------------------|

10. | 1 2 1 8000 |

+----------------------------------+

. *question 19

. list sex employed region income if sex==1 & ( region==1|region==2) & income>2000 & employed==2

+----------------------------------+
| sex employed region income |

|----------------------------------|

3. | 1 2 1 4000 |

8. | 1 2 1 6000 |

9. | 1 2 1 7000 |

10. | 1 2 1 8000 |

+----------------------------------+

. *question 20

. list hhid if region==1& region==2

. *question 21

. tab sex

sex | Freq. Percent Cum.

------------+-----------------------------------

1| 12 30.77 30.77

2| 27 69.23 100.00

------------+-----------------------------------

Total | 39 100.00

. *question 22

. tab income

income | Freq. Percent Cum.

------------+-----------------------------------

-100 | 1 2.56 2.56

300 | 2 5.13 7.69

400 | 1 2.56 10.26

500 | 1 2.56 12.82

600 | 2 5.13 17.95

900 | 1 2.56 20.51

1000 | 1 2.56 23.08

1500 | 2 5.13 28.21

2000 | 1 2.56 30.77

2200 | 1 2.56 33.33

2500 | 2 5.13 38.46


3000 | 3 7.69 46.15

3500 | 1 2.56 48.72

4000 | 3 7.69 56.41

5000 | 1 2.56 58.97

6000 | 1 2.56 61.54

7000 | 1 2.56 64.10

8000 | 1 2.56 66.67

9000 | 1 2.56 69.23

11000 | 1 2.56 71.79

12000 | 1 2.56 74.36

13000 | 1 2.56 76.92

13334 | 1 2.56 79.49

15000 | 1 2.56 82.05

20000 | 1 2.56 84.62

23000 | 1 2.56 87.18

23444 | 1 2.56 89.74

24500 | 1 2.56 92.31

32000 | 1 2.56 94.87

35000 | 1 2.56 97.44

45000 | 1 2.56 100.00

------------+-----------------------------------

Total | 39 100.00

. *question 23

. tabulate sex employed

| Employed

sex | 1 2| Total

-----------+----------------------+----------

1| 7 5| 12

2| 8 19 | 27

-----------+----------------------+----------

Total | 15 24 | 39

. *question 24

. tab sex in 1/5


sex | Freq. Percent Cum.

------------+-----------------------------------

1| 3 60.00 60.00

2| 2 40.00 100.00

------------+-----------------------------------

Total | 5 100.00

. *question 25

. tab sex if employed==2

sex | Freq. Percent Cum.

------------+-----------------------------------

1| 5 20.83 20.83

2| 19 79.17 100.00

------------+-----------------------------------

Total | 24 100.00

. *question 26

. sum consumption

Variable | Obs Mean Std. Dev. Min Max

-------------+---------------------------------------------------------

consumption | 39 5029.487 14112.63 300 90000

. *question 27

. tab employed if consumption>5029.5

Employed | Freq. Percent Cum.

------------+-----------------------------------

2| 6 100.00 100.00

------------+-----------------------------------

Total | 6 100.00
. *question 28

. tab region,sum (consumption)

| Summary of consumption

region | Mean Std. Dev. Freq.

------------+------------------------------------

1| 3250 1932.9023 10

2| 868.75 889.19607 8

3| 2000 1080.5091 9

4 | 11558.333 24781.865 12

------------+------------------------------------

Total | 5029.4872 14112.628 39

. *question 29

. sum income if region==1|region==2

Variable | Obs Mean Std. Dev. Min Max

-------------+---------------------------------------------------------

income | 18 3016.667 2926.602 -100 9000

. *question 30

. sum income consumption priceofteff

Variable | Obs Mean Std. Dev. Min Max

-------------+---------------------------------------------------------

income | 39 8807.128 10925.38 -100 45000

consumption | 39 5029.487 14112.63 300 90000

priceofteff | 38 1688.105 1704.931 -1000 7000

. *question 31

. sum income,d

income

-------------------------------------------------------------

Percentiles Smallest

1% -100 -100

5% 300 300

10% 400 300 Obs 39

25% 1500 400 Sum of Wgt. 39


50% 4000 Mean 8807.128

Largest Std. Dev. 10925.38

75% 13000 24500

90% 24500 32000 Variance 1.19e+08

95% 35000 35000 Skewness 1.662905

99% 45000 45000 Kurtosis 5.124449

. *question 32

. tabstat income consumption,stats(mean sd median max min count variance skewness kurtosis)

stats | income consum~n

---------+--------------------

mean | 8807.128 5029.487

sd | 10925.38 14112.63

p50 | 4000 2500

max | 45000 90000

min | -100 300

N| 39 39

variance | 1.19e+08 1.99e+08

skewness | 1.662905 5.807179

kurtosis | 5.124449 35.49622

------------------------------

. *question 33

. edit if sex==1

. *question 34

. browse if sex==1

. *question 35

. inspect priceofteff

priceofteff: price of teff Number of Observations

--------------------------- ---------------------------------------

Total Integers Nonintegers

| # Negative 1 1 -

| # Zero - - -

| # Positive 37 37 -

| # # ----------- ----------- -----------


| # # # Total 38 38 -

| # # # # . Missing 1

+---------------------- -----------

-1000 7000 39

(30 unique values)

. *question 36

. codebook income

----------------------------------------------------------------------------------------------------------------

income (unlabeled)

----------------------------------------------------------------------------------------------------------------

type: numeric (long)

range: [-100,45000] units: 1

unique values: 31 missing .: 0/39

mean: 8807.13

std. dev: 10925.4

percentiles: 10% 25% 50% 75% 90%

400 1500 4000 13000 24500

. *question 37

. replace price=1000 if price<0

(1 real change made)

. *question 38

. list priceofteff in 4

+----------+

| priceo~f |

|----------|

4. | 1000 |

+----------+
. *question 39

. replace price in 4=-2000

(1 real change made)

. *question 40

. replace price in 4=1000

(1 real change made)

. *question 41

. count if sex==1 & employed==2

. *question 42

. count if sex==1 & income>1500

. *question 43

. rename priceofteff price

. *question 44

. rename consumption cons

. *question 45

. rename numbofindividu family_size

. *question 46

. rename ageofhhhead age

. *question 47

. label var hhid "house hold code"

*question 48

. label var family_size "family size"

*question 49

. label var age "age of the household age"

. *question 50

. tab sex

sex | Freq. Percent Cum.


------------+-----------------------------------

1| 12 30.77 30.77

2| 27 69.23 100.00

------------+-----------------------------------

Total | 39 100.00

. *question 51

. recode sex 2=1 1=0

(sex: 39 changes made)

. *question 52

. tab sex

sex | Freq. Percent Cum.

------------+-----------------------------------

0| 12 30.77 30.77

1| 27 69.23 100.00

------------+-----------------------------------

Total | 39 100.00

. *question 53

. tab employed

Employed | Freq. Percent Cum.

------------+-----------------------------------

1| 15 38.46 38.46

2| 24 61.54 100.00

------------+-----------------------------------

Total | 39 100.00

. *question 54

. recode employed 2=1 1=0

(employed: 39 changes made)

. *question 55
. tab employed

Employed | Freq. Percent Cum.

------------+-----------------------------------

0| 15 38.46 38.46

1| 24 61.54 100.00

------------+-----------------------------------

Total | 39 100.00

. *question 56

. label define sex 1"male" 0"female"

. label value sex sex

. tab sex

sex | Freq. Percent Cum.

------------+-----------------------------------

female | 12 30.77 30.77

male | 27 69.23 100.00

------------+-----------------------------------

Total | 39 100.00

. *question 57

. label define employed 1"private" 0"public"

. label value employed employed

. tab employed

Employed | Freq. Percent Cum.

------------+-----------------------------------

public | 15 38.46 38.46

private | 24 61.54 100.00

------------+-----------------------------------

Total | 39 100.00

. *question 58

. label define satisfactionrate 1"not satisfied" 2"satisfied" 3"very satisfied"


. label value satisfactionrate satisfactionrate

. *question 59

. label define region 1"Tigray" 2"Amhara" 3"Oromiya" 4"SNNP"

label value region region

*question 60

. tab region

region | Freq. Percent Cum.

------------+-----------------------------------

Tigray | 10 25.64 25.64

Amhara | 8 20.51 46.15

Oromiya | 9 23.08 69.23

SNNP | 12 30.77 100.00

------------+-----------------------------------

Total | 39 100.00

*question 61

. browse region

. *question 62

. browse

. *question 63

. tab region,sum( satisfactionrate)

| Summary of satisfaction rate

region | Mean Std. Dev. Freq.

------------+------------------------------------

Tigray | 1.9 .73786479 10

Amhara | 3 0 8

Oromiya | 2.3333333 1 9

SNNP | 1.75 .45226702 12

------------+------------------------------------

Total | 2.1794872 .79046272 39

. tab region satisfactionrate

| satisfaction rate

region | not satis satisfied very sati | Total

-----------+---------------------------------+----------
Tigray | 3 5 2| 10

Amhara | 0 0 8| 8

Oromiya | 3 0 6| 9

SNNP | 3 9 0| 12

-----------+---------------------------------+----------

Total | 9 14 16 | 39

. *question 64

. gen age2= age* age

. *question 65

. gen saving= income- cons

. *question 66

. gen sati= satisfactionrate==3| satisfactionrate==2

. *question 67

. gen price_inf= price>1000

. *question 68

. gen pci= income/ hhid

. *question 69

. gen social_status= pci>1000

. label define social_status 1"Rich" 0"Poor"

. label value social_status social_status

. tab social_status

social_stat |

us | Freq. Percent Cum.

------------+-----------------------------------

Poor | 33 84.62 84.62

Rich | 6 15.38 100.00


------------+-----------------------------------

Total | 39 100.00

. *question 70

. gen hap= happiness>5

. *question 71

. gen iw= hap==1& pci==1

. *question 72

. tab region,gen(kilil)

region | Freq. Percent Cum.

------------+-----------------------------------

Tigray | 10 25.64 25.64

Amhara | 8 20.51 46.15

Oromiya | 9 23.08 69.23

SNNP | 12 30.77 100.00

------------+-----------------------------------

Total | 39 100.00

. *question 73

. egen ap=mean( price)

. egen ac=mean( cons )

. *question 74

. egen apr=mean( price),by( region)

. egen acr=mean( cons ),by( region)

. *question 75

. egen tcr=sum (cons),by(region)

. *question 76

. count if cons> acr

11

. *question 77

. replace price= ap if price>5000

variable price was int now float

(3 real changes made)


. *question 78

. gen Ddfemal= sex==0& region==1

*question 79

. xtile CC=cons,nq(3)

. label define CC 3"High" 2"Medium" 1"low"

. label value CC CC

. tab CC

3 quantiles |

of cons | Freq. Percent Cum.

------------+-----------------------------------

low | 15 38.46 38.46

Medium | 11 28.21 66.67

High | 13 33.33 100.00

------------+-----------------------------------

Total | 39 100.00

. *question 80

. recode age (min/24=1)(25/40=2)(41/60=3)(61/max=4),gen(agei)

(39 differences between age and agei)

. *question 81

. recode family_size (min/3=1)(4/7=2)(8/max=3),gen(fam)

(38 differences between family_size and fam)

. label define fam 1"lower family size" 2"middel family size" 3"large family size"

. label value fam fam

. tab fam

RECODE of |

family_size |

(family size) | Freq. Percent Cum.

-------------------+-----------------------------------

lower family size | 20 51.28 51.28

middel family size | 16 41.03 92.31

large family size | 3 7.69 100.00


-------------------+-----------------------------------

Total | 39 100.00

*question 82

. gen lcon=ln(1+ cons)

. sum lcon,d

lcon

-------------------------------------------------------------

Percentiles Smallest

1% 5.70711 5.70711

5% 5.70711 5.70711

10% 5.993961 5.993961 Obs 39

25% 7.09091 5.993961 Sum of Wgt. 39

50% 7.824446 Mean 7.698604

Largest Std. Dev. 1.088007

75% 8.412055 8.779712

90% 8.779712 8.853808 Variance 1.183759

95% 8.987322 8.987322 Skewness .5550591

99% 11.40758 11.40758 Kurtosis 4.958275

. kdensity lcon,normal

(n() set to 39)


. kdensity cons ,normal

(n() set to 39)

. kdensity cons ,normal

(n() set to 39)

. pnorm lcon
. pnorm cons

. log close

name: <unnamed>

log: C:\Users\kidus\Desktop\skill mart\advanced reserch methds\stata excersise .log


log type: text

closed on: 19 Jul 2022, 23:29:10

----------------------------------------------------------------------------------------------------------------

You might also like