You are on page 1of 9

ESGC6121 Assignment on Data Processing and Analysis

1. Use Opinion on abortion data to create a pro-life index and perform reliability
test.
Recode the index into 3 categories, and a) run crosstab of the recoded variable with
i) year of study, and ii) ethnic group, b) compare the mean index by i) year of study
and ii) race.

Reliability Statistics
Cronbach's

N of Items

Alpha
.813

prolife
Frequency

Percent

Valid Percent

Cumulative
Percent

Valid

6.00

28

2.8

2.9

2.9

7.00

22

2.2

2.3

5.1

8.00

24

2.4

2.5

7.6

9.00

36

3.6

3.7

11.3

10.00

55

5.5

5.6

16.9

11.00

52

5.2

5.3

22.3

12.00

86

8.7

8.8

31.1

13.00

82

8.3

8.4

39.5

14.00

80

8.1

8.2

47.7

15.00

82

8.3

8.4

56.2

16.00

79

8.0

8.1

64.3

17.00

74

7.5

7.6

71.9

18.00

88

8.9

9.0

80.9

19.00

43

4.3

4.4

85.3

20.00

42

4.2

4.3

89.6

21.00

24

2.4

2.5

92.1

22.00

26

2.6

2.7

94.8

23.00

15

1.5

1.5

96.3

24.00

10

1.0

1.0

97.3

25.00

.8

.8

98.2

26.00

.6

.6

98.8

27.00

.1

.1

98.9

28.00

.2

.2

99.1

29.00

.3

.3

99.4

30.00

.6

.6

100.0

974

98.3

100.0

17

1.7

991

100.0

Total
Missing

System

Total

Prolife3
Frequency

Percent

Valid Percent

Cumulative
Percent

Valid

Missing

<13

303

30.6

31.1

31.1

13-17

397

40.1

40.8

71.9

>17

274

27.6

28.1

100.0

Total

974

98.3

100.0

17

1.7

991

100.0

System

Total

Prolife3 * Year of study Crosstabulation


% within Year of study
Year of study
Year 1

Prolife3

Total

Year 3

Total
Year 5

<13

45.7%

34.0%

20.3%

31.1%

13-17

39.3%

36.9%

44.5%

40.8%

>17

15.0%

29.1%

35.2%

28.1%

100.0%

100.0%

100.0%

100.0%

Prolife3 * Race Crosstabulation


% within Race
Race
Malays

Prolife3

Chinese

Total

Indians

Others

<13

43.7%

18.5%

16.5%

47.1%

31.1%

13-17

44.8%

40.3%

28.7%

32.4%

40.8%

>17

11.6%

41.1%

54.8%

20.6%

28.1%

100.0%

100.0%

100.0%

100.0%

100.0%

Total

prolife * Year of study


Mean
Year of study

prolife

Year 1

13.1174

Year 3

14.8673

Year 5

16.0383

Total

14.9261

prolife * Race
Mean
Race

prolife

Malays

13.2052

Chinese

16.2725

Indians

17.7826

Others

13.9118

Total

14.9261

Note that we use the recoded (categorical variable) for cross-tab, and the numeric,
ratio scale variable to compare mean.

Use Depopulation Data to answer the following questions:


2. Show the percentage of households owing car, bike, tv, video, sewing machine,
fan, fridge, aircon, heater, phone and washing machine by district, in a table and a
chart. Interpret the results.

Kerian
13.5

Hilir
Perak
17.8

Sabak
Bernam
29.1

Rembau
24.3

Total
21.2

Motorcycle

75.3

79.1

90.2

67.6

78.0

Television

94.0

92.6

94.1

95.8

94.1

Video
Player

21.5

14.0

24.4

22.0

20.5

Sewing
Machine

50.2

56.6

69.3

64.9

60.3

Electric Fan

89.2

89.9

93.3

88.8

90.3

Refrigerator

70.5

79.5

82.3

88.4

80.2

Airconditioner

1.2

.0

2.0

1.5

1.2

Water
Heater

10.0

7.0

8.7

9.3

8.7

Telephone

57.4

51.2

39.0

71.8

54.9

Washing
Machine

38.2

43.0

69.3

59.8

52.6

Motorcar

3. Obtain the percentage distribution of sector by district, and present your results
in a table and a chart. Interpret the results.

Main Sector * District Crosstabulation


% within District
District
Kerian

Main Sector

Hilir Perak

Sabak Bernam

Rembau

Rubber

1.2%

0.4%

0.4%

74.9%

19.5%

Oil Palm

19.1%

13.2%

0.4%

5.8%

9.6%

Coconut

0.4%

49.6%

36.6%

5.4%

23.1%

0.4%

0.8%

10.4%

2.9%

Fruits
Padi

66.1%

35.3%

39.4%

1.9%

35.4%

Fishing

13.1%

1.2%

12.6%

1.2%

6.9%

9.8%

0.4%

2.5%

100.0%

100.0%

100.0%

Non-Agricultural
Total

Total

100.0%

100.0%

4. Crosstab stdliv by i) district, ii) age of head of household, and interpret the
results.

Std of Living Compared to 5 Yrs Ago * District Crosstabulation


% within District
District
Kerian
Std of Living Compared to 5
Yrs Ago

Hilir Perak

Total

Sabak Bernam

Better

54.2%

54.3%

68.9%

60.6%

59.5%

Declined

10.0%

11.6%

3.9%

2.7%

7.0%

Same

35.9%

34.1%

27.2%

36.7%

33.5%

100.0%

100.0%

100.0%

100.0%

100.0%

Total

Std of Living Compared to 5 Yrs Ago * Age of head2 Crosstabulation


% within Age of head2
Age of head2
Below 60
Std of Living Compared to 5
Yrs Ago
Total

Rembau

Better
Declined
Same

Total

60 and above

62.2%

55.2%

59.5%

8.0%

5.5%

7.0%

29.8%

39.3%

33.5%

100.0%

100.0%

100.0%

Std of Living Compared to 5 Yrs Ago * Age of head of household Crosstabulation


% within Age of head of household
Age of head of household
Below 40
Std of Living Compared to 5
Yrs Ago

Better
Declined
Same

Total

40-49

50-59

60-69

Total
70 and above

60.8%

61.7%

63.5%

60.7%

47.6%

59.5%

7.8%

7.5%

8.5%

4.8%

6.5%

7.0%

31.4%

30.8%

28.0%

34.5%

45.8%

33.5%

100.0%

100.0%

100.0%

100.0%

100.0%

100.0%

5. Obtain the percentage of heads of households that had received remittances


(rrany) by i) age of head (ageheadc) , and ii) district. Interpret the results.

Age of head of
household
Below 40

Had received any


remittance
1.96

40-49

25.87

50-59

67.16

60-69

80.79

70 and above

77.38

Total

54.01

District
Kerian

Had received any


remittance
45.82

Hilir Perak

53.10

Sabak Bernam

44.09

Rembau

72.59

Total

54.01

6. Obtain the percentage of heads of households that had received remittances


(rrany) by i) age of head (agehead2) and district in one table. Interpret the results.

60
Below and
60
above Total
36.21
67.53
45.82

Kerian
Hilir
Perak
Sabak
Bernam
Rembau
Total

43.64

69.89

53.1

31.35
43.56
37.92

78.26
91.14
79.35

44.09
72.59
54.01

7. Compare mean remittances received by i) ageheadc, and ii) district. Interpret the
result.
Total remittances received * Age of head of
household
Mean
Age of head of household

Total remittances
received

Below 40

80.0000

40-49

411.8408

50-59

1698.6974

60-69

2148.0655

70 and above

1842.3810

Total

1327.5871

Total remittances received *


District
Mean
District

Total remittances
received

Kerian

863.6375

Hilir Perak

1046.2791

Sabak Bernam

1095.7087

Rembau

2284.8301

Total

1327.5871

8. Compare mean remittance received by agehead2 and district. Show the result in
a table and a chart. Interpret.
Below 60
681.6

60 and above
1275.1

Total
863.6

Hilir
Perak
Sabak
Bernam

855.2

1385.4

1046.3

915.3

1579.4

1095.7

Rembau

1250.9

2945.7

2284.8

888.6

2018.7

1327.6

Kerian

Total

You might also like