You are on page 1of 2

-----------------------------------------------------------------------------------

---------------------------------------------------------
name: <unnamed>
log:
/Users/zulfikarjj/Desktop/2207210004_FinaFitriaAndika_UjiNormalitas.log
log type: text
opened on: 28 Jan 2023, 13:12:29

.
. import excel "/Users/zulfikarjj/Desktop/IQ data excel.xlsx", sheet("Sheet1")
firstrow

. summ IQ

Variable | Obs Mean Std. Dev. Min Max


-------------+---------------------------------------------------------
IQ | 112 89.07143 15.8664 57 124

. swilk IQ

Shapiro-Wilk W test for normal data

Variable | Obs W V z Prob>z


-------------+------------------------------------------------------
IQ | 112 0.98908 0.992 -0.018 0.50728

. clear

. use "/Users/zulfikarjj/Desktop/honolulu.dta"

. summ edu weight height age smoking physical blood cholesterol systolic bmi

Variable | Obs Mean Std. Dev. Min Max


-------------+---------------------------------------------------------
edu | 100 2.47 1.242797 1 5
weight | 100 64.22 8.610048 47 91
height | 100 161.75 5.596491 150 175
age | 100 53.67 5.101109 46 67
smoking | 100 .37 .4852366 0 1
-------------+---------------------------------------------------------
physical | 100 1.51 .5024184 1 2
blood | 100 151.64 55.57878 37 442
cholesterol | 100 216.96 38.85844 134 382
systolic | 100 130.1 21.20677 92 208
bmi | 100 24.527 3.01608 18.3 33.6

. swilk weight height age blood cholesterol systolic bmi

Shapiro-Wilk W test for normal data

Variable | Obs W V z Prob>z


-------------+------------------------------------------------------
weight | 100 0.97871 1.758 1.252 0.10537
height | 100 0.98508 1.232 0.463 0.32168
age | 100 0.91479 7.035 4.328 0.00001
blood | 100 0.90040 8.223 4.674 0.00000
cholesterol | 100 0.95690 3.559 2.816 0.00243
systolic | 100 0.95908 3.379 2.701 0.00346
bmi | 100 0.98856 0.944 -0.127 0.55068
. ladder cholesterol

Transformation formula chi2(2) P(chi2)


------------------------------------------------------------------
cubic choles~l^3 65.77 0.000
square choles~l^2 39.91 0.000
identity choles~l 16.46 0.000
square root sqrt(choles~l) 7.92 0.019
log log(choles~l) 2.37 0.306
1/(square root) 1/sqrt(choles~l) 1.07 0.585
inverse 1/choles~l 4.31 0.116
1/square 1/(choles~l^2) 16.56 0.000
1/cubic 1/(choles~l^3) 33.54 0.000

. gen chollog=log(cholesterol)

. swilk chollog

Shapiro-Wilk W test for normal data

Variable | Obs W V z Prob>z


-------------+------------------------------------------------------
chollog | 100 0.99157 0.696 -0.803 0.78895

. log close
name: <unnamed>
log:
/Users/zulfikarjj/Desktop/2207210004_FinaFitriaAndika_UjiNormalitas.log
log type: text
closed on: 28 Jan 2023, 13:17:26
-----------------------------------------------------------------------------------
---------------------------------------------------------

You might also like