SPSS & Stata
SPSS & Stata
SPSS & Stata
1. The data of the nutritional status (Underweight) among under five children in
Bangladesh are given below in Table 1.
11
(a) impute the missing vales of the variables the dataset?
(b) Compute new variable BMI from height and weight and categories underweight,
normal, overweight, and obese.
(c) Calculate mean and standard deviation of the continuous variables and frequency
with percentage of the categorical variables?
(d) Make histogram of the continues variables and pie chart of the categorical
variables?
(e) Calculate row, column, and total percentage in cross table and test the association
between the dependent variable (Underweight) and the categorical independents
variables.
(f) Perform independent sample t-test between the dependent variable and
continuous independent variables.
Table 1
Ag Sex Weight Heigh Underweigh Ag Se Weigh Heigh Underweigh
e (Kg) t t e x t (Kg) t t
(CM) (CM)
18 1 463 1477 1 39 1 424 1491 0
35 1 396 1507 0 27 2 474 1492 0
21 1 396 1541 0 27 1 474 1492 1
31 1 458 1506 1 25 1 638 1577 0
22 1 512 1592 1 2 596 1587 0
1 577 1661 0 22 1 474 1531 0
40 2 604 1501 0 18 467 1482 0
29 1 471 1571 0 27 2 570 1523 0
21 2 358 1440 0 38 1 551 1555 0
37 2 569 1468 0 33 2 383 1423 1
24 336 1460 1 30 1 450 1490 0
27 2 688 1596 0 26 1 554 1621 0
28 1 591 1513 0 33 1 479 1556 0
29 2 339 1430 0 21 1 514 1532 0
599 1484 0 2 635 1472 1
24 1 612 1564 0 22 2 522 1540 0
24 2 612 1564 0 19 1 497 1498 0
18 2 472 1504 0 24 496 1567 0
31 1 426 1462 0 25 2 594 1481 0
25 2 450 1513 0 17 2 561 1546 0
Stata
2. Hypertension data of the people in Bangladesh are given below in Table 2.
14
a) Omit the missing vales from the dataset?
b) Compute new variable BMI from height and weight and categories underweight,
normal, overweight, and obese.
c) Describe the dataset and calculate mean and standard deviation of the continuous
variables and frequency with percentage of the categorical variables?
d) Calculate row, column, and total percentage in a cross table and test the
association between the dependent variable (Hypertension) and the categorical
independents variables.
e) Perform paired sample t-test and Wilcoxon rank sum test.
f) Calculate the correlation matrix and make a correlation graph between height and
weight variables.
g) Conduct bivariate linear regression between the dependent variable (height) and
independent variable (weight).
Table 2
Ag Sex Weight Heigh Hypertensio Ag Se Weigh Heigh Hypertensio
e (Kg) t n e x t (Kg) t n
(CM) (CM)
75 1 72.0 172 1 46 1 74.0 170 1
31 2 61.0 165 1 34 2 70.0 156 1
35 2 66.0 160 1 74 1 70.0 170 1
34 1 70.0 180 1 59 2 63.0 179 0
38 67.0 1 54 1 60.0 173 1
38 2 65.0 170 1 60 2 63.0 175 1
38 2 170 0 57 2 158 1
31 1 62.0 161 0 34 1 69.0 172 1
2 70.0 164 0 77 2 68.0 171 1
34 2 63.0 182 1 38 67.0 165 1
40 1 59.0 152 1 34 1 75.0 168 0
32 2 63.0 165 1 78 1 70.0 180 1
58 2 67.0 161 0 39 2 58.0 150 1
42 2 52.0 154 1 2 74.0 173 1
55 2 68.0 155 0 80 1 80.0 180 0
78 1 172 1 74 2 69.5 170 1
50 75.0 168 1 32 1 52.0 166 1
43 1 76.0 1 65 2 70.0 162 1
31 1 71.0 170 1 38 2 50.0 150 1
35 2 66.5 180 1 43 1 54.0 153 1