You are on page 1of 14

.

sum edad tas tad colesterol hdl trigliceridos glucemia peso

Variable | Obs Mean Std. Dev. Min Max


-------------+------------------------------------------------------
edad | 650 44.45231 12.33202 20 70
tas | 650 116.0546 11.24457 87 150
tad | 648 77.52238 7.747805 51 98
colesterol | 650 205.0308 38.82911 107 411
hdl | 650 50.35231 12.2608 23 91
-------------+------------------------------------------------------
trigliceri~s | 650 178.6092 109.6416 37 858
glucemia | 650 97.05538 32.73285 65 375
peso | 650 73.91938 14.6656 43.4 136
. tab sexo

Sexo | Freq. Percent Cum.


------------+-----------------------------------
Masculino | 312 48.00 48.00
Femenino | 338 52.00 100.00
------------+-----------------------------------
Total | 650 100.00

. tab educat

educat | Freq. Percent Cum.


----------------+-----------------------------------
terciario | 169 26.28 26.28
secundario | 352 54.74 81.03
primario | 92 14.31 95.33
no alfabetizado | 30 4.67 100.00
----------------+-----------------------------------
Total | 643 100.00
. sum edad, d

Edad
-------------------------------------------------------------
Percentiles Smallest
1% 20 20
5% 22 20
10% 29 20 Obs 650
25% 34 20 Sum of Wgt. 650
50% 44 Mean 44.45231
Largest Std. Dev. 12.33202
75% 53 70
90% 60.5 70 Variance 152.0786
95% 66 70 Skewness .0131513
99% 70 70 Kurtosis 2.408589
. sum tas,d

tas
-------------------------------------------------------------
Percentiles Smallest
1% 100 87
5% 102 98
10% 104 100 Obs 650
25% 108 100 Sum of Wgt. 650
50% 113 Mean 116.0546
Largest Std. Dev. 11.24457
75% 124 149
90% 132 149 Variance 126.4404
95% 138 150 Skewness .7371871
99% 145 150 Kurtosis 2.943476
Sexo y nivel sérico de colesterol
-> sexo = Masculino

Colesterol total
-------------------------------------------------------------
Percentiles Smallest
1% 124 107
5% 135 107
10% 154 107 Obs 312
25% 175.5 124 Sum of Wgt. 312
50% 207.5 Mean 202.3301
Largest Std. Dev. 37.87656
75% 227 282
90% 251 293 Variance 1434.633
95% 266 293 Skewness -.0923409
99% 282 322 Kurtosis 2.839352
Sexo y nivel sérico de colesterol
-> sexo = Femenino

Colesterol total
-------------------------------------------------------------
Percentiles Smallest
1% 129 123
5% 151 123
10% 158 127 Obs 338
25% 180 129 Sum of Wgt. 338
50% 204.5 Mean 207.5237
Largest Std. Dev. 39.58053
75% 233 316
90% 257 316 Variance 1566.618
95% 268 411 Skewness .9684263
99% 316 411 Kurtosis 6.180156
Sexo y nivel sérico de colesterol
Masculino Femenino
400
300
200
100

Graphs by Sexo
Sexo y nivel sérico de colesterol
1.00

1.00
0.75

0.75
Normal F[(colesterol-m)/s]
0.50

0.50
0.25

0.25
0.00

0.00
0.00 0.25 0.50 0.75 1.00 0.00 0.25 0.50 0.75 1.00
Empirical P[i] = i/(N+1) Empirical P[i] = i/(N+1)

swilk colesterol if sexo==1


Shapiro-Wilk W test for normal data
Variable | Obs W V z Prob>z
-------------+-------------------------------------------------
colesterol | 312 0.99299 1.546 1.025 0.15275
. swilk colesterol if sexo==2
Shapiro-Wilk W test for normal data
Variable | Obs W V z Prob>z
-------------+-------------------------------------------------
colesterol | 338 0.95352 11.008 5.663 0.00000

Bartlett's test for equal variances: chi2(1) = 0.6245 Prob>chi2 = 0.429


Sexo y nivel sérico de colesterol
. ttest colesterol, by(sexo)

Two-sample t test with equal variances


------------------------------------------------------------------------------
Group | Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
---------+--------------------------------------------------------------------
Masculin | 312 202.3301 2.144338 37.87656 198.1109 206.5494
Femenino | 338 207.5237 2.152897 39.58053 203.2889 211.7585
---------+--------------------------------------------------------------------
combined | 650 205.0308 1.523003 38.82911 202.0402 208.0214
---------+--------------------------------------------------------------------
diff | -5.19354 3.043968 -11.17077 .7836908
------------------------------------------------------------------------------
Degrees of freedom: 648
Ho: mean(Masculin) - mean(Femenino) = diff = 0
Ha: diff < 0 Ha: diff != 0 Ha: diff > 0
t = -1.7062 t = -1.7062 t = -1.7062
P < t = 0.0442 P > |t| = 0.0885 P > t = 0.9558
Sexo y nivel sérico de c-HDL
. ttest hdl, by(sexo)

Two-sample t test with equal variances


------------------------------------------------------------------------------
Group | Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
---------+--------------------------------------------------------------------
Masculin | 312 46.1891 .6355363 11.22581 44.93861 47.4396
Femenino | 338 54.19527 .648958 11.93095 52.91875 55.47178
---------+--------------------------------------------------------------------
combined | 650 50.35231 .480908 12.2608 49.40798 51.29663
---------+--------------------------------------------------------------------
diff | -8.006164 .910541 -9.794131 -6.218197
------------------------------------------------------------------------------
Degrees of freedom: 648
Ho: mean(Masculin) - mean(Femenino) = diff = 0
Ha: diff < 0 Ha: diff != 0 Ha: diff > 0
t = -8.7928 t = -8.7928 t = -8.7928
P < t = 0.0000 P > |t| = 0.0000 P > t = 1.0000
Nivel educativo y colesterol
-> educat = terciario
Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
colesterol | 169 200.7041 38.47953 107 322
____________________________________________________________________________
-> educat = secundario
Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
colesterol | 352 208.2983 40.66862 123 411
____________________________________________________________________________
-> educat = primario
Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
colesterol | 92 200.1739 31.03476 130 269
___________________________________________________________________________
-> educat = no alfabetizado
Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
colesterol | 30 207.6667 40.30345 127 270
Nivel educativo y colesterol

. oneway colesterol educat

Analysis of Variance
Source SS df MS F Prob > F
------------------------------------------------------------------------
Between groups 9296.39005 3 3098.79668 2.05 0.1051
Within groups 964038.77 639 1508.66787
------------------------------------------------------------------------
Total 973335.16 642 1516.09838

Bartlett's test for equal variances: chi2(3) = 9.5180 Prob>chi2 = 0.023


Nivel educativo y colesterol
. kwallis colesterol if educat!=., by(educat)

Test: Equality of populations (Kruskal-Wallis test)


+-----------------------------------+
| educat | Obs | Rank Sum |
|-----------------+-----+-----------|
| terciario | 169 | 51530.00 |
| secundario | 352 | 117465.50 |
| primario | 92 | 27440.50 |
| no alfabetizado | 30 | 10610.00 |
+-----------------------------------+
chi-squared = 5.202 with 3 d.f.

probability = 0.1576
Nivel educativo y colesterol
Colesterol total
450

400

350

300

250

200

150

100
terciario secundario primario no alf abetizado

You might also like