0% found this document useful (0 votes)
2 views6 pages

stata assignment

The document presents statistical data on various demographics including gender, children, religion, marriage happiness, and affairs among a sample of 601 individuals. It highlights that there are more females than males, a higher frequency of couples with children, and a greater number of individuals reporting happiness in their marriages. Additionally, it provides average values for the number of affairs, education, years married, and age, with insights on how these factors relate to marital satisfaction.

Uploaded by

Ibrahim Muazu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views6 pages

stata assignment

The document presents statistical data on various demographics including gender, children, religion, marriage happiness, and affairs among a sample of 601 individuals. It highlights that there are more females than males, a higher frequency of couples with children, and a greater number of individuals reporting happiness in their marriages. Additionally, it provides average values for the number of affairs, education, years married, and age, with insights on how these factors relate to marital satisfaction.

Uploaded by

Ibrahim Muazu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

tab male

male | Freq. Percent Cum.

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

0| 315 52.41 52.41

1| 286 47.59 100.00

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

Total | 601 100.00

Comment: The percentage of female is more than that of male.

tab kids

kids | Freq. Percent Cum.

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

0| 171 28.45 28.45

1| 430 71.55 100.00

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

Total | 601 100.00

Comment: The frequency of couples with kids is more than that of those without kids.

. tab relig

relig | Freq. Percent Cum.

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

1| 48 7.99 7.99

2| 164 27.29 35.27

3| 129 21.46 56.74

4| 190 31.61 88.35

5| 70 11.65 100.00

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

Total | 601 100.00

Comment: Those are that religious are higher in number.


. tab ratemarr

ratemarr | Freq. Percent Cum.

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

1| 16 2.66 2.66

2| 66 10.98 13.64

3| 93 15.47 29.12

4| 194 32.28 61.40

5| 232 38.60 100.00

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

Total | 601 100.00

Comment: The distribution shows that a greater number of couples are very happy in their marriage.

. tab affair

affair | Freq. Percent Cum.

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

0| 451 75.04 75.04

1| 150 24.96 100.00

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

Total | 601 100.00

Comment: From this table, those who do not have affair are more than those who have affair.

. tab affair ratemarr

| ratemarr

affair | 1 2 3 4 5| Total

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

0| 8 33 66 146 198 | 451

1| 8 33 27 48 34 | 150

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

Total | 16 66 93 194 232 | 601


Comment: From this tabulation, this shows a greater number of people who do not have affairs as
against those that have are very happy in their marriage.

. tab kids ratemarr

| ratemarr

kids | 1 2 3 4 5| Total

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

0| 3 8 24 40 96 | 171

1| 13 58 69 154 136 | 430

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

Total | 16 66 93 194 232 | 601

Comment: This distribution shows a higher number in very happy couples also having more kids.

. tab male ratemarr

| ratemarr

male | 1 2 3 4 5| Total

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

0| 11 35 46 93 130 | 315

1| 5 31 47 101 102 | 286

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

Total | 16 66 93 194 232 | 601

Comment: From this, more of the females are very happy in their marriage while a greater number in
males are happy.
. tab relig ratemarr

| ratemarr

relig | 1 2 3 4 5| Total

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

1| 1 3 5 17 22 | 48

2| 5 24 25 51 59 | 164

3| 4 16 22 41 46 | 129

4| 4 17 30 64 75 | 190

5| 2 6 11 21 30 | 70

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

Total | 16 66 93 194 232 | 601

Comment: A greater number of couples who are religious are very happy in their marriage.

. tab affair ratemarr

| ratemarr

affair | 1 2 3 4 5| Total

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

0| 8 33 66 146 198 | 451

1| 8 33 27 48 34 | 150

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

Total | 16 66 93 194 232 | 601

Comment: From this table, those that do not have affairs are the most happy in their marriages.
. sum naffairs educ yrsmarr age

Variable | Obs Mean Std. Dev. Min Max

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

naffairs | 601 1.455907 3.298758 0 12

educ | 601 16.16639 2.402555 9 20

yrsmarr | 601 8.177696 5.571303 .125 15

age | 601 32.48752 9.288762 17.5 57

The average values of the variables above are;

a. naffairs- 1.46 in two decimal places,

b. educ- 16.17 in two decimal places,

c. yrsmarr- 8.18 in two decimal places,

d. age- 32.49 in two decimal places.

. sum naffairs if male==1

Variable | Obs Mean Std. Dev. Min Max

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

naffairs | 286 1.496503 3.292467 0 12

The average value for this is 1.49 in two decimal places.

. sum naffairs if male==0

Variable | Obs Mean Std. Dev. Min Max

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

naffairs | 315 1.419048 3.309264 0 12

The average value is 1.42 in two decimal places.


. sum naffairs if relig==5

Variable | Obs Mean Std. Dev. Min Max

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

naffairs | 70 .8857143 2.545487 0 12

The average is 0.89 in two decimal places.

. sum naffairs if relig==4

Variable | Obs Mean Std. Dev. Min Max

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

naffairs | 190 .8578947 2.566742 0 12

The average value is 0.86 in two decimal places.

. sum naffairs if relig==3

Variable | Obs Mean Std. Dev. Min Max

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

naffairs | 129 1.976744 3.734269 0 12

The average value is 1.98 in two decimal places.

. sum naffairs if relig==2

Variable | Obs Mean Std. Dev. Min Max

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

naffairs | 164 1.652439 3.531792 0 12

The average value is 1.65 in two decimal places

. sum naffairs if relig==1

Variable | Obs Mean Std. Dev. Min Max

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

naffairs | 48 2.583333 4.191345 0 12

The average value is 2.58 in two decimal places.

You might also like