Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Salidas con el programa stata

. su glicemiac1 glicemiac2 glicemiac3

Variable | Obs Mean Std. Dev. Min Max


-------------+--------------------------------------------------------
glicemiac1 | 6 156 38.47077 110 200
glicemiac2 | 6 170 48.16638 120 250
glicemiac3 | 6 171.1667 45.23015 126 240

. swilk glicemiac1 glicemiac2

Shapiro-Wilk W test for normal data

Variable | Obs W V z Prob>z


-------------+--------------------------------------------------
glicemiac1 | 6 0.98961 0.129 -2.263 0.98819
glicemiac2 | 6 0.95817 0.518 -0.861 0.80550

. ttest glicemiac1= glicemiac2

Paired t test
------------------------------------------------------------------------------
Variable | Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
---------+--------------------------------------------------------------------
glicem~1 | 6 156 15.70563 38.47077 115.6274 196.3726
glicem~2 | 6 170 19.66384 48.16638 119.4525 220.5475
---------+--------------------------------------------------------------------
diff | 6 -14 32.1455 78.74008 -96.63264 68.63264
------------------------------------------------------------------------------
mean(diff) = mean(glicemiac1 - glicemiac2) t = -0.4355
Ho: mean(diff) = 0 degrees of freedom = 5

Ha: mean(diff) < 0 Ha: mean(diff) != 0 Ha: mean(diff) > 0


Pr(T < t) = 0.3407 Pr(|T| > |t|) = 0.6813 Pr(T > t) = 0.6593

. ttest glicemiac1= glicemiac2, unpaired

Two-sample t test with equal variances


------------------------------------------------------------------------------
Variable | Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
---------+--------------------------------------------------------------------
glicem~1 | 6 156 15.70563 38.47077 115.6274 196.3726
glicem~2 | 6 170 19.66384 48.16638 119.4525 220.5475
---------+--------------------------------------------------------------------
combined | 12 163 12.18171 42.19866 136.1882 189.8118
---------+--------------------------------------------------------------------
diff | -14 25.16611 -70.0736 42.0736
------------------------------------------------------------------------------
diff = mean(glicemiac1) - mean(glicemiac2) t = -0.5563
Ho: diff = 0 degrees of freedom = 10

Ha: diff < 0 Ha: diff != 0 Ha: diff > 0


Pr(T < t) = 0.2951 Pr(|T| > |t|) = 0.5902 Pr(T > t) = 0.7049
. ttest glicemiac1= glicemiac2, unpaired unequal

Two-sample t test with unequal variances


------------------------------------------------------------------------------
Variable | Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
---------+--------------------------------------------------------------------
glicem~1 | 6 156 15.70563 38.47077 115.6274 196.3726
glicem~2 | 6 170 19.66384 48.16638 119.4525 220.5475
---------+--------------------------------------------------------------------
combined | 12 163 12.18171 42.19866 136.1882 189.8118
---------+--------------------------------------------------------------------
diff | -14 25.16611 -70.44723 42.44723
------------------------------------------------------------------------------
diff = mean(glicemiac1) - mean(glicemiac2) t = -0.5563
Ho: diff = 0 Satterthwaite's degrees of freedom = 9.53412

Ha: diff < 0 Ha: diff != 0 Ha: diff > 0


Pr(T < t) = 0.2954 Pr(|T| > |t|) = 0.5908 Pr(T > t) = 0.7046

You might also like