You are on page 1of 88

PAKET SPSS

LANJUT

ANOVA

Menguji apakah rerata 1 variabel berbeda


secara bermakna pada lebih dari 2 kategori
(beda rerata kadar kolesterol antar 3 kategori
usia)
Buka

SPSS: file data dietstudy


Analyze Compare means One-way ANOVA:

Dependent List
Factor
Option:

: data rasio (wg0)


: lebih 2 kategori (agegroup)

Statistics: descriptive dan homogeneity-of-variance


Post-hoc: Bonferroni dan Tukey

Continue
OK

Tests of Normality
a

Cholesterol

Kolmogorov-Smirnov
Statistic
df
Sig.
.156
16
.200*

Shapiro-Wilk
Statistic
df
.938
16

Sig.
.320

*. This is a lower bound of the true significance.


a. Lilliefors Significance Correction

Descriptives
Cholesterol

N
<50
50-60
>60
Total

5
6
5
16

Mean
187.40
215.50
188.80
198.38

Std. Deviation
29.433
37.212
29.987
33.472

Std. Error
13.163
15.192
13.410
8.368

95% Confidence Interval for


Mean
Lower Bound
Upper Bound
150.85
223.95
176.45
254.55
151.57
226.03
180.54
216.21

Minimum
158
151
157
151

Maximum
233
257
222
257

ANOVA
Cholesterol

Between Groups
Within Groups
Total

Sum of
Squares
2820.250
13985.500
16805.750

df
2
13
15

Mean Square
1410.125
1075.808

F
1.311

Sig.
.303

Multiple Comparisons
Dependent Variable: Cholesterol

Tukey HSD

(I) age grouping


<50
50-60
>60

Bonferroni

<50
50-60
>60

(J) age grouping


50-60
>60
<50
>60
<50
50-60
50-60
>60
<50
>60
<50
50-60

Mean
Difference
(I-J)
-28.10
-1.40
28.10
26.70
1.40
-26.70
-28.10
-1.40
28.10
26.70
1.40
-26.70

Std. Error
19.861
20.744
19.861
19.861
20.744
19.861
19.861
20.744
19.861
19.861
20.744
19.861

Sig.
.362
.997
.362
.397
.997
.397
.542
1.000
.542
.605
1.000
.605

95% Confidence Interval


Lower Bound Upper Bound
-80.54
24.34
-56.17
53.37
-24.34
80.54
-25.74
79.14
-53.37
56.17
-79.14
25.74
-82.64
26.44
-58.36
55.56
-26.44
82.64
-27.84
81.24
-55.56
58.36
-81.24
27.84

GLM - univariat

Menguji hubungan usia dengan kadar


kolesterol:
Buka

SPSS: file data dietstudy


Analyze General Linear Model Univariate:
Dependent variable: masukkan variabel wgt0 (data
rasio)
Covariate: masukkan variabel age (data rasio)
sebagai variabel independen
OK

GLM - univariat
Tests of Between-Subjects Effects
Dependent Variable: Cholesterol
Source
Corrected Model
Intercept
AGE
Error
Total
Corrected Total

Type III Sum


of Squares
306.756a
12956.153
306.756
16498.994
646448.000
16805.750

df
1
1
1
14
16
15

Mean Square
306.756
12956.153
306.756
1178.500

a. R Squared = .018 (Adjusted R Squared = -.052)

F
.260
10.994
.260

Sig.
.618
.005
.618

GLM univariat (options)


Parameter Estimates
Dependent Variable: Cholesterol
Parameter
Intercept
AGE

B
234.135
-.654

Std. Error
70.614
1.282

t
3.316
-.510

Sig.
.005
.618

95% Confidence Interval


Lower Bound
Upper Bound
82.682
385.587
-3.403
2.095

Kadar kolesterol darah = 234,135 0,654


usia

Correlations
Age in years

Age in years
1
.
16
-.135
.618
16

Pearson Correlation
Sig. (2-tailed)
N
Pearson Correlation
Sig. (2-tailed)
N

Cholesterol

Cholesterol
-.135
.618
16
1
.
16

Linear Regression

250

Cholesterol

225

200

Chole s te rol = 234.13 + -0.65 * age


R-Square = 0.02

175

150
45

50

55

Age in years

60

GLM - univariat

Menguji hubungan jenis kelamin dan kategori


usia dengan kadar kolesterol darah:
Buka

SPSS: file data dietstudy


Analyze General Linear Model Univariate:

Dependent variable: masukkan variabel wgt0 (data rasio)


Fixed factors: masukkan variabel jenis kelamin dan kategori
usia (data nominal/ordinal)
OK

GLM - univariat
Tests of Betw een-Subjects Effects
Dependent Variable: Cholesterol
Source
Corrected Model
Intercept
GENDER
AGEGROUP
GENDER * AGEGROUP
Error
Total
Corrected Total

Type III Sum


of Squares
13794.217a
462728.955
10936.955
37.922
491.654
3011.533
646448.000
16805.750

df
5
1
1
2
2
10
16
15

a. R Squared = .821 (Adjusted R Squared = .731)

Mean Square
2758.843
462728.955
10936.955
18.961
245.827
301.153

F
9.161
1536.523
36.317
.063
.816

Sig.
.002
.000
.000
.939
.469

GLM univariat (plots)


Estimated Marginal Means of Cholesterol
240

Estimated Marginal Means

220

200

180

Gender
160
Male
140

Female

<50

age grouping

50-60

>60

MANOVA (GLM-multivariate)

Variabel dependen lebih dari 1 tapi


kelompok1, semisal:

Bagaimana rata-rata kadar trigliserida dan


kolesterol (2 variabel dependen) berbeda secara
bermakna untuk tiap kelompok usia (1 kelompok)

MANOVA (GLM-multivariate)

Variabel dependen lebih dari 1 tapi


kelompok1
Buka SPSS: file data dietstudy
Analyze General Linear Model Multivariate:

Dependent variables: masukkan variabel kolesterol dan


trigliserida darah
Fixed factor: masukkan variabel kategori usia
Options - Display: aktifkan Homogenity test
Continue dan OK

MANOVA (GLM-multivariate)
a
Box's Test of Equality of Covariance Matrices

Box's M
F
df1
df2
Sig.

.864
.111
6
3329.708
.995

Tests the null hypothesis that the observed covariance


matrices of the dependent variables are equal across groups.
a. Design: Intercept+AGEGROUP

MANOVA (GLM-multivariate)
a
Levene's Test of Equality of Error Variances

Cholesterol
Triglyceride

F
.095
.617

df1

df2
2
2

13
13

Sig.
.910
.555

Tests the null hypothesis that the error variance of the dependent
variable is equal across groups.
a. Design: Intercept+AGEGROUP

MANOVA (GLM-multivariate)
Multivariate Testsc
Effect
Intercept

AGEGROUP

Pillai's Trace
Wilks' Lambda
Hotelling's Trace
Roy's Largest Root
Pillai's Trace
Wilks' Lambda
Hotelling's Trace
Roy's Largest Root

Value
.982
.018
53.680
53.680
.231
.770
.298
.293

F
Hypothesis df
a
322.080
2.000
322.080a
2.000
322.080a
2.000
a
322.080
2.000
.849
4.000
.838a
4.000
.818
4.000
b
1.905
2.000

Error df
12.000
12.000
12.000
12.000
26.000
24.000
22.000
13.000

a. Exact statistic
b. The statistic is an upper bound on F that yields a lower bound on the significance level.
c. Design: Intercept+AGEGROUP

Sig.
.000
.000
.000
.000
.507
.515
.527
.188

MANOVA (GLM-multivariate)
Tests of Between-Subjects Effects
Source
Corrected Model
Intercept
AGEGROUP
Error
Total
Corrected Total

Dependent Variable
Cholesterol
Triglyceride
Cholesterol
Triglyceride
Cholesterol
Triglyceride
Cholesterol
Triglyceride
Cholesterol
Triglyceride
Cholesterol
Triglyceride

Type III Sum


of Squares
2820.250a
334.204b
617839.218
305882.549
2820.250
334.204
13985.500
12315.733
646448.000
319289.000
16805.750
12649.937

a. R Squared = .168 (Adjusted R Squared = .040)


b. R Squared = .026 (Adjusted R Squared = -.123)

df
2
2
1
1
2
2
13
13
16
16
15
15

Mean Square
1410.125
167.102
617839.218
305882.549
1410.125
167.102
1075.808
947.364

F
1.311
.176
574.303
322.877
1.311
.176

Sig.
.303
.840
.000
.000
.303
.840

MANOVA (GLM-multivariate)

Hubungan gender dengan kadar


trigliserida dan kolesterol darah:
Buka SPSS: file data dietstudy
Analyze General Linear Model Multivariate:

Dependent variables: masukkan variabel kolesterol dan


trigliserida darah
Fixed factor: masukkan variabel gender
Options - Display: aktifkan Homogenity test
Continue dan OK

MANOVA (GLM-multivariate)
a
Box's Test of Equality of Covariance Matrices

Box's M
F
df1
df2
Sig.

.864
.111
6
3329.708
.995

Tests the null hypothesis that the observed covariance


matrices of the dependent variables are equal across groups.
a. Design: Intercept+AGEGROUP

MANOVA (GLM-multivariate)
a
Levene's Test of Equality of Error Variances

Cholesterol
Triglyceride

F
1.521
.630

df1

df2
1
1

14
14

Sig.
.238
.440

Tests the null hypothesis that the error variance of the dependent
variable is equal across groups.
a. Design: Intercept+GENDER

MANOVA (GLM-multivariate)
Multivariate Testsb
Effect
Intercept

GENDER

Pillai's Trace
Wilks' Lambda
Hotelling's Trace
Roy's Largest Root
Pillai's Trace
Wilks' Lambda
Hotelling's Trace
Roy's Largest Root

a. Exact statistic
b. Design: Intercept+GENDER

Value
.996
.004
240.699
240.699
.818
.182
4.501
4.501

F
Hypothesis df
a
1564.542
2.000
1564.542a
2.000
1564.542a
2.000
a
1564.542
2.000
a
29.256
2.000
29.256a
2.000
29.256a
2.000
29.256a
2.000

Error df
13.000
13.000
13.000
13.000
13.000
13.000
13.000
13.000

Sig.
.000
.000
.000
.000
.000
.000
.000
.000

MANOVA (GLM-multivariate)
Tests of Between-Subjects Effects
Source
Corrected Model
Intercept
GENDER
Error
Total
Corrected Total

Dependent Variable
Cholesterol
Triglyceride
Cholesterol
Triglyceride
Cholesterol
Triglyceride
Cholesterol
Triglyceride
Cholesterol
Triglyceride
Cholesterol
Triglyceride

Type III Sum


of Squares
13274.766a
1627.937b
597334.766
296331.437
13274.766
1627.937
3530.984
11022.000
646448.000
319289.000
16805.750
12649.937

a. R Squared = .790 (Adjusted R Squared = .775)


b. R Squared = .129 (Adjusted R Squared = .066)

df
1
1
1
1
1
1
14
14
16
16
15
15

Mean Square
13274.766
1627.937
597334.766
296331.437
13274.766
1627.937
252.213
787.286

F
52.633
2.068
2368.373
376.396
52.633
2.068

Sig.
.000
.172
.000
.000
.000
.172

MANOVA (Factorial design)

Variabel dependen lebih dari 1 dan


kelompok lebih dari 1, semisal:

Bagaimana rata-rata kadar trigliserida dan


kolesterol (2 variabel dependen) berbeda secara
bermakna untuk tiap kelompok usia dan jenis
kelamin (2 kelompok)

MANOVA (Factorial design)


Buka SPSS: file data dietstudy
Analyze general linear model
multivariate:

Dependent

variable: TG0 dan WTG0


Fixed factor: gender dan AGEGROUP
Option homogeneity test
Continue- OK

MANOVA (Factorial design)


a
Box's Test of Equality of Covariance Matrices

Box's M
F
df1
df2
Sig.

3.502
.339
6
463.698
.916

Tests the null hypothesis that the observed covariance


matrices of the dependent variables are equal across groups.
a. Design: Intercept+GENDER+AGEGROUP+GENDER *
AGEGROUP

MANOVA (Factorial design)


a
Levene's Test of Equality of Error Variances

Cholesterol
Triglyceride

F
1.852
1.091

df1

df2
5
5

10
10

Sig.
.190
.422

Tests the null hypothesis that the error variance of the dependent
variable is equal across groups.
a. Design: Intercept+GENDER+AGEGROUP+GENDER *
AGEGROUP

MANOVA (Factorial design)


Multivariate Testsc
Effect
Intercept

Pillai's Trace
Wilks' Lambda
Hotelling's Trace
Roy's Largest Root
GENDER
Pillai's Trace
Wilks' Lambda
Hotelling's Trace
Roy's Largest Root
AGEGROUP
Pillai's Trace
Wilks' Lambda
Hotelling's Trace
Roy's Largest Root
GENDER * AGEGROUP Pillai's Trace
Wilks' Lambda
Hotelling's Trace
Roy's Largest Root

Value
.996
.004
224.615
224.615
.826
.174
4.748
4.748
.164
.837
.194
.188
.199
.808
.230
.187

F
Hypothesis df
1010.769a
2.000
a
1010.769
2.000
a
1010.769
2.000
a
1010.769
2.000
a
21.364
2.000
a
21.364
2.000
a
21.364
2.000
a
21.364
2.000
.448
4.000
a
.420
4.000
.388
4.000
b
.938
2.000
.551
4.000
a
.506
4.000
.459
4.000
b
.933
2.000

a. Exact statistic
b. The statistic is an upper bound on F that yields a lower bound on the significance level.
c. Design: Intercept+GENDER+AGEGROUP+GENDER * AGEGROUP

Error df
9.000
9.000
9.000
9.000
9.000
9.000
9.000
9.000
20.000
18.000
16.000
10.000
20.000
18.000
16.000
10.000

Sig.
.000
.000
.000
.000
.000
.000
.000
.000
.773
.792
.814
.423
.701
.732
.765
.425

MANOVA (Factorial design)


Tests of Between-Subjects Effects
Source
Corrected Model

Dependent Variable
Cholesterol
Triglyceride
Intercept
Cholesterol
Triglyceride
GENDER
Cholesterol
Triglyceride
AGEGROUP
Cholesterol
Triglyceride
GENDER * AGEGROUP Cholesterol
Triglyceride
Error
Cholesterol
Triglyceride
Total
Cholesterol
Triglyceride
Corrected Total
Cholesterol
Triglyceride

Type III Sum


of Squares
13794.217a
3458.471b
462728.955
234481.867
10936.955
2734.239
37.922
1426.678
491.654
430.109
3011.533
9191.467
646448.000
319289.000
16805.750
12649.937

a. R Squared = .821 (Adjusted R Squared = .731)


b. R Squared = .273 (Adjusted R Squared = -.090)

df
5
5
1
1
1
1
2
2
2
2
10
10
16
16
15
15

Mean Square
2758.843
691.694
462728.955
234481.867
10936.955
2734.239
18.961
713.339
245.827
215.054
301.153
919.147

F
9.161
.753
1536.523
255.108
36.317
2.975
.063
.776
.816
.234

Sig.
.002
.603
.000
.000
.000
.115
.939
.486
.469
.796

MANOVA (Factorial design)


Estimated Marginal Means of Cholesterol

Estimated Marginal Means of Triglyceride

240

180

220

200

180

Gender
160
Male
140

Female

<50

age grouping

50-60

>60

Estimated Marginal Means

Estimated Marginal Means

160

140

Gender

120

Male
100

Female

<50

age grouping

50-60

>60

PENGUKURAN BERULANG

Mengetahui apakah ada perbedaan yang


bermakna pada suatu variabel yang diukur
secara berulang

PENGUKURAN BERULANG

Buka SPSS: file data dietstudy


Analyze General Linear Model Repeated Measures:

Within subject factor name: ketik kolest


Number of levels: ketik 5 (wgt0 wgt4)
Klik: Add define:

Within subject factor: pindahkan wgt0 s/d wgt4


Between subject factor: pindahkan gender
Klik: plot:

Horizontal axis: gender


Separate line: kolest

Add dan Continue


OK

PENGUKURAN BERULANG
Within-Subjects Factors
Measure: MEASURE_1
KOLES
1
2
3
4
5

Dependent
Variable
WGT0
WGT1
WGT2
WGT3
WGT4

Betw een-Subjects Factors


Gender

0
1

Value Label
Male
Female

N
9
7

PENGUKURAN BERULANG
Multivariate Testsb
Effect
KOLES

KOLES * GENDER

Pillai's Trace
Wilks' Lambda
Hotelling's Trace
Roy's Largest Root
Pillai's Trace
Wilks' Lambda
Hotelling's Trace
Roy's Largest Root

a. Exact statistic
b.
Design: Intercept+GENDER
Within Subjects Design: KOLES

Value
.908
.092
9.863
9.863
.139
.861
.162
.162

F
Hypothesis df
a
27.123
4.000
27.123a
4.000
a
27.123
4.000
27.123a
4.000
a
.444
4.000
.444a
4.000
a
.444
4.000
.444a
4.000

Error df
11.000
11.000
11.000
11.000
11.000
11.000
11.000
11.000

Sig.
.000
.000
.000
.000
.775
.775
.775
.775

PENGUKURAN BERULANG
Mauchly's Test of Sphericityb
Measure: MEASURE_1
a

Epsilon
Within Subjects Effect Mauchly's W
KOLES
.399

Approx.
Chi-Square
11.423

df
9

Sig.
.252

Greenhous
e-Geisser
.763

Huynh-Feldt
1.000

Lower-bound
.250

Tests the null hypothesis that the error covariance matrix of the orthonormalized transformed dependent variables is
proportional to an identity matrix.
a. May be used to adjust the degrees of freedom for the averaged tests of significance. Corrected tests are displayed in the
Tests of Within-Subjects Effects table.
b.
Design: Intercept+GENDER
Within Subjects Design: KOLES

PENGUKURAN BERULANG
Tests of Within-Subjects Effects
Measure: MEASURE_1
Source
KOLES

KOLES * GENDER

Error(KOLES)

Sphericity Assumed
Greenhouse-Geisser
Huynh-Feldt
Lower-bound
Sphericity Assumed
Greenhouse-Geisser
Huynh-Feldt
Lower-bound
Sphericity Assumed
Greenhouse-Geisser
Huynh-Feldt
Lower-bound

Type III Sum


of Squares
639.892
639.892
639.892
639.892
2.142
2.142
2.142
2.142
155.708
155.708
155.708
155.708

df
4
3.052
4.000
1.000
4
3.052
4.000
1.000
56
42.727
56.000
14.000

Mean Square
159.973
209.668
159.973
639.892
.536
.702
.536
2.142
2.780
3.644
2.780
11.122

F
57.534
57.534
57.534
57.534
.193
.193
.193
.193

Sig.
.000
.000
.000
.000
.941
.904
.941
.667

PENGUKURAN BERULANG
Tests of Within-Subjects Contrasts
Measure: MEASURE_1
Source
KOLES

KOLES * GENDER

Error(KOLES)

KOLES
Linear
Quadratic
Cubic
Order 4
Linear
Quadratic
Cubic
Order 4
Linear
Quadratic
Cubic
Order 4

Type III Sum


of Squares
639.032
.737
9.921E-05
.123
.032
.309
.500
1.301
66.943
21.531
47.994
19.241

df
1
1
1
1
1
1
1
1
14
14
14
14

Mean Square
639.032
.737
9.921E-05
.123
.032
.309
.500
1.301
4.782
1.538
3.428
1.374

F
133.643
.479
.000
.089
.007
.201
.146
.947

Sig.
.000
.500
.996
.770
.936
.661
.708
.347

PENGUKURAN BERULANG

Tests of Between-Subjects Effects


Measure: MEASURE_1
Transformed Variable: Average
Source
Intercept
GENDER
Error

Type III Sum


of Squares
2860620.105
66062.105
18516.483

df
1
1
14

Mean Square
2860620.105
66062.105
1322.606

F
2162.867
49.948

Sig.
.000
.000

PENGUKURAN BERULANG
Estimated Marginal Means of MEASURE_1
240

Estimated Marginal Means

220

200

180

Gender
160
Male
140

Female
1

KOLES

REGRESI BERGANDA

Memprediksi besar variabel dependen


dengan menggunakan data variabel bebas
yang sudah diketahui besarnya

REGRESI BERGANDA

Analyze regression linear:


Dependent

: WGT4
Independent(s): WGT0, TG0, AGE
Case labels: gender
Method: enter
OK

REGRESI BERGANDA
Variables Entered/Removedb
Model
1

Variables
Entered
Cholestero
l, Age in
years,
Triglycerid
a
e

Variables
Removed

Method

Enter

a. All requested variables entered.


b. Dependent Variable: Final cholesterol

REGRESI BERGANDA

Model Summary
Model
1

R
.997a

R Square
.994

Adjusted
R Square
.992

Std. Error of
the Estimate
2.953

a. Predictors: (Constant), Cholesterol, Age in years,


Triglyceride

REGRESI BERGANDA
ANOVAb
Model
1

Regression
Residual
Total

Sum of
Squares
16736.790
104.648
16841.438

df
3
12
15

Mean Square
5578.930
8.721

a. Predictors: (Constant), Cholesterol, Age in years, Triglyceride


b. Dependent Variable: Final cholesterol

F
639.737

Sig.
.000a

REGRESI BERGANDA
Coefficientsa

Model
1

(Constant)
Age in years
Triglyceride
Cholesterol

Unstandardized
Coefficients
B
Std. Error
3.375
8.574
-.164
.111
-.010
.027
.995
.024

Standardized
Coefficients
Beta
-.034
-.009
.994

t
.394
-1.477
-.373
42.243

Sig.
.701
.165
.716
.000

a. Dependent Variable: Final cholesterol

Persamaan regresi:
Kadar kolesterol akhir = 3,375 0,164 usia 0,10 kadar
trigliserida awal + 0,995 kadar kolesterol awal

REGRESI BERGANDA
Residuals Statisticsa
Predicted Value
Residual
Std. Predicted Value
Std. Residual

Minimum
142.66
-5.05
-1.426
-1.712

Maximum
249.33
4.88
1.767
1.652

a. Dependent Variable: Final cholesterol

Mean
190.31
.00
.000
.000

Std. Deviation
33.403
2.641
1.000
.894

N
16
16
16
16

REGRESI BERGANDA
Variables Entered/Removedb
Model
1

Variables
Entered
Cholestero
a
l

Variables
Removed

Method
.

Enter

a. All requested variables entered.


b. Dependent Variable: Final cholesterol

Model Summaryb
Model
1

R
.996a

R Square
.993

Adjusted
R Square
.992

a. Predictors: (Constant), Cholesterol


b. Dependent Variable: Final cholesterol

Std. Error of
the Estimate
2.986

REGRESI BERGANDA
ANOVAb
Model
1

Regression
Residual
Total

Sum of
Squares
16716.618
124.819
16841.438

df

a. Predictors: (Constant), Cholesterol


b. Dependent Variable: Final cholesterol

1
14
15

Mean Square
16716.618
8.916

F
1874.976

Sig.
.000a

REGRESI BERGANDA
Coefficientsa

Model
1

(Constant)
Cholesterol

Unstandardized
Coefficients
B
Std. Error
-7.536
4.630
.997
.023

Standardized
Coefficients
Beta
.996

t
-1.628
43.301

Sig.
.126
.000

a. Dependent Variable: Final cholesterol

Persamaan regresi:
Kadar kolesterol akhir = -7,536 + 0,997 kadar kolesterol
awal

Correlations

Cholesterol

Final
Cholesterol
cholesterol
1
.996**
.
.000
16
16
.996**
1
.000
.
16
16

Pearson Correlation
Sig. (2-tailed)
N
Pearson Correlation
Sig. (2-tailed)
N

Final cholesterol

**. Correlation is significant at the 0.01 level (2-tailed).


250

Final chole s te rol = -7.54 + 1.00 * w gt0


R-Square = 0.99

Final cholesterol

225

200

175

150

150

175

200

Cholesterol

225

250

Linear Regression

Uji regresi logistik binari

Ingin memprediksi variabel dependen


yang berskala binari (ya=1 dan tidak=0)
dengan menggunakan data variabel
independen yang sudah diketahui
besarnya

Uji regresi logistik binari


Buka SPSS: file data dietstudy
Analyze Regression Binary logistic:

Dependent:

cholst0 (status kadar kolesterol


awal, 1=tinggi, 0=normal)
Covariates: age dan TG0
Options: Homer-Lemeshow goodness of fit
OK

Uji regresi logistik binari


Case Processing Summary
Unweighted Cases
Selected Cases

Unselected Cases
Total

N
Included in Analysis
Missing Cases
Total

16
0
16
0
16

Percent
100.0
.0
100.0
.0
100.0

a. If weight is in effect, see classification table for the total


number of cases.

Uji regresi logistik binari


Omnibus Tests of Model Coefficients
Step 1

Step
Block
Model

Chi-square
1.902
1.902
1.902

df
2
2
2

Sig.
.386
.386
.386

Uji regresi logistik binari


Model Summary
Step
1

-2 Log
likelihood
20.028

Cox & Snell


R Square
.112

Nagelkerke
R Square
.150

Hosmer and Lemeshow Test


Step
1

Chi-square
9.129

df
6

Sig.
.166

Uji regresi logistik binari


Contingency Table for Hosmer and Lemeshow Test

Step
1

1
2
3
4
5
6
7
8

cholesterol status =
normal
Observed
Expected
2
1.570
2
1.516
1
1.453
0
1.118
0
1.024
2
.920
1
.787
1
.613

cholesterol status =
high
Observed
Expected
0
.430
0
.484
1
.547
2
.882
2
.976
0
1.080
1
1.213
1
1.387

Total
2
2
2
2
2
2
2
2

Uji regresi logistik binari


Classification Tablea
Predicted

Step 1

Observed
cholesterol status
Overall Percentage

a. The cut value is .500

normal
high

cholesterol status
normal
high
5
4
4
3

Percentage
Correct
55.6
42.9
50.0

Uji regresi logistik binari


Variables in the Equation
Step
a
1

AGE
TG0
Constant

B
.042
.025
-5.970

S.E.
.079
.020
5.416

Wald
.277
1.527
1.215

df
1
1
1

Sig.
.598
.217
.270

Exp(B)
1.043
1.025
.003

a. Variable(s) entered on step 1: AGE, TG0.

Penafsiran dan prediksi:


Kadar kolesterol tinggi = -5,970 + 0,42 usia + 0,025
kadar trigliserida

REGRESI BERGANDA
variabel dummy

Memprediksi besar variabel dependen


dengan menggunakan data variabel bebas
dimana satu atau lebih variabel bebas
adalah variabel dummy (ya=1 dan tidak=0)

REGRESI BERGANDA
variabel dummy
Buka SPSS: file data dietstudy
Analyze Regression Linier:

Dependent:

wgt4
Independent: gender, cholst0, trigst0
Methods: enter
OK

REGRESI BERGANDA
variabel dummy
Variables Entered/Removedb
Model
1

Variables
Entered
triglyceride
status,
cholesterol
status, a
Gender

Variables
Removed

Method

Enter

a. All requested variables entered.


b. Dependent Variable: Final cholesterol

REGRESI BERGANDA
variabel dummy
Model Summary
Model
1

R
.932a

R Square
.869

Adjusted
R Square
.836

Std. Error of
the Estimate
13.551

a. Predictors: (Constant), triglyceride status, cholesterol


status, Gender

REGRESI BERGANDA
variabel dummy
ANOVAb
Model
1

Regression
Residual
Total

Sum of
Squares
14637.729
2203.709
16841.438

df
3
12
15

Mean Square
4879.243
183.642

F
26.569

a. Predictors: (Constant), triglyceride status, cholesterol status, Gender


b. Dependent Variable: Final cholesterol

Sig.
.000a

REGRESI BERGANDA
variabel dummy
Coefficientsa

Model
1

(Constant)
Gender
cholesterol status
triglyceride status

Unstandardized
Coefficients
B
Std. Error
194.020
10.219
-35.437
10.971
30.003
10.877
-3.039
7.100

a. Dependent Variable: Final cholesterol

Standardized
Coefficients
Beta
-.542
.459
-.046

t
18.987
-3.230
2.758
-.428

Sig.
.000
.007
.017
.676

REGRESI BERGANDA
variabel dummy
Coefficientsa

Model
1

(Constant)
Gender
cholesterol status

Unstandardized
Coefficients
B
Std. Error
192.500
9.276
-34.786
10.518
29.786
10.518

Standardized
Coefficients
Beta
-.532
.455

t
20.752
-3.307
2.832

a. Dependent Variable: Final cholesterol

Penafsiran dan prediksi:


Kadar kolesterol akhir = 192,500 34,786 gender +
29,786 kadar kolesterol awal

Sig.
.000
.006
.014

Uji analisis faktor

Ingin diketahui kadar kolesteol yang mana


yang menentukan kadar kolesterol akhir
dari beberapa data kadar kolesterol yang
ada?

Uji analisis faktor


Buka SPSS: file data dietstudy
Analyze Data reduction - Factor:

Wgt0

s/d wgt4
Descriptives:

Correlation matrix:
KMO and Bartlettss test of spherity
Anti image

Continue

dan OK

Uji analisis faktor


KMO and Bartlett's Test
Kaiser-Meyer-Olkin Measure of Sampling
Adequacy.
Bartlett's Test of
Sphericity

Approx. Chi-Square
df
Sig.

.894
294.198
10
.000

Uji analisis faktor


Anti-image Matrices

Anti-image Covariance

Anti-image Correlation

Cholesterol
1st interim cholesterol
2nd interim cholesterol
3rd interim cholesterol
Final cholesterol
Cholesterol
1st interim cholesterol
2nd interim cholesterol
3rd interim cholesterol
Final cholesterol

a. Measures of Sampling Adequacy(MSA)

Cholesterol
.003
.000
-.001
-.001
.001
.899a
-.092
-.536
-.248
.301

1st interim
cholesterol
.000
.003
-.001
.000
-1.847E-05
-.092
.935a
-.516
.065
-.007

2nd interim
cholesterol
-.001
-.001
.001
.000
-.001
-.536
-.516
.820a
-.246
-.512

3rd interim
cholesterol
-.001
.000
.000
.003
-.001
-.248
.065
-.246
.937a
-.378

Final
cholesterol
.001
-1.847E-05
-.001
-.001
.003
.301
-.007
-.512
-.378
.889a

Uji analisis faktor


Communalities
Cholesterol
1st interim cholesterol
2nd interim cholesterol
3rd interim cholesterol
Final cholesterol

Initial
1.000
1.000
1.000
1.000
1.000

Extraction
.998
.998
.999
.998
.998

Extraction Method: Principal Component Analysis.

Uji analisis faktor


Total Variance Explained

Component
1
2
3
4
5

Total
4.991
.004
.003
.002
.001

Initial Eigenvalues
% of Variance Cumulative %
99.816
99.816
.080
99.896
.059
99.954
.033
99.988
.012
100.000

Extraction Method: Principal Component Analysis.

Extraction Sums of Squared Loadings


Total
% of Variance Cumulative %
4.991
99.816
99.816

Uji analisis faktor


Scree Plot
6

Eigenvalue

0
1

Component Number

Uji analisis faktor


Component Matrixa

Cholesterol
1st interim cholesterol
2nd interim cholesterol
3rd interim cholesterol
Final cholesterol

Compone
nt
1
.999
.999
1.000
.999
.999

Extraction Method: Principal Component Analysis.


a. 1 components extracted.

ANALISIS DISKRIMINAN

Ingin membuat model yang bisa secara


jelas menunjukkan perbedaan antar isi
variabel dependen, misal:
Kadar

kolesterol dan trigliserida pada


kelompok laki-laki (=0) dan perempuan (=1)

ANALISIS DISKRIMINAN

Buka SPSS: file data dietstudy


Analyze Clasify - Discriminant:
Grouping

variable: gender
Define range: 0 dan 1
Independent: age, wgt0, tg0, wgt4 dan tg4
Statistics:

Descriptives: Means
Function coefficients: Fishers dam Unstandardized

ANALISIS DISKRIMINAN
Use

stepwise method

Method: Mahalanobis distance


Criteria: use probability of F

Clasify:

Display: Casewise results, Leave-one-outclassification

Continue

dan OK

ANALISIS DISKRIMINAN
Group Statistics
Gender
Male

Female

Total

Age in years
Triglyceride
Cholesterol
Final triglyceride
Final cholesterol
Age in years
Triglyceride
Cholesterol
Final triglyceride
Final cholesterol
Age in years
Triglyceride
Cholesterol
Final triglyceride
Final cholesterol

Mean
54.00
147.33
223.78
117.11
215.67
55.57
127.00
165.71
133.71
157.71
54.69
138.44
198.38
124.38
190.31

Std. Deviation
7.036
26.847
18.754
28.790
18.076
7.208
29.597
10.935
29.607
12.932
6.916
29.040
33.472
29.412
33.508

Valid N (listwise)
Unweighted Weighted
9
9.000
9
9.000
9
9.000
9
9.000
9
9.000
7
7.000
7
7.000
7
7.000
7
7.000
7
7.000
16
16.000
16
16.000
16
16.000
16
16.000
16
16.000

ANALISIS DISKRIMINAN
Variables Entered/Removeda,b,c,d
Min. D Squared

Step
1

Entered
Cholester
ol

Statistic
13.367

Between
Groups
Male and
Female

Exact F
Statistic

df1

52.633

df2
1

14.000

Sig.
4.192E-06

At each step, the variable that maximizes the Mahalanobis distance between the two closest
groups is entered.
a. Maximum number of steps is 10.
b. Maximum significance of F to enter is .05.
c. Minimum significance of F to remove is .10.
d. F level, tolerance, or VIN insufficient for further computation.

ANALISIS DISKRIMINAN
Variables in the Analysis
Step
1

Cholesterol

Tolerance
1.000

Sig. of F to
Remove
.000

ANALISIS DISKRIMINAN
Variables Not in the Analysis
Step
0

Tolerance
Age in years
Triglyceride
Cholesterol
Final triglyceride
Final cholesterol

Age in years
Triglyceride
Final triglyceride
Final cholesterol

Min.
Tolerance

Sig. of F
to Enter

Min. D
Squared

1.000

1.000

.668

.049

1.000

1.000

.172

.525

1.000

1.000

.000

13.367

1.000

1.000

.277

.325

1.000

1.000

.000

12.998

.995

.995

.977

13.368

.945

.945

.178

16.003

.957

.957

.869

13.404

.034

.034

.953

13.372

Between
Groups
Male and
Female
Male and
Female
Male and
Female
Male and
Female
Male and
Female
Male and
Female
Male and
Female
Male and
Female
Male and
Female

ANALISIS DISKRIMINAN
Wilks' Lambda

Step
1

Number of
Variables
1

Exact F
Lambda
.210

df1

df2
1

df3
1

14

Statistic
52.633

df1
1

df2
14.000

Eigenvalues
Function
1

Eigenvalue % of Variance
3.760a
100.0

Cumulative %
100.0

Canonical
Correlation
.889

a. First 1 canonical discriminant functions were used in the


analysis.

Wilks' Lambda
Test of Function(s)
1

Wilks'
Lambda
.210

Chi-square
21.062

df
1

Sig.
.000

Sig.
.000

ANALISIS DISKRIMINAN
Structure Matrix

Cholesterol
Final cholesterola
Triglyceridea
Final triglyceridea
Age in yearsa

Function
1
1.000
.983
-.234
-.207
-.069

Pooled within-groups correlations between discriminating


variables and standardized canonical discriminant functions
Variables ordered by absolute size of correlation within function.
a. This variable not used in the analysis.

ANALISIS DISKRIMINAN
Canonical Discriminant Function Coefficients

Cholesterol
(Constant)

Function
1
.063
-12.491

Unstandardized coefficients
Skor Z = -12,491 + 0,063 kadar kolesterol awal

ANALISIS DISKRIMINAN
Functions at Group Centroids

Gender
Male
Female

Function
1
1.600
-2.057

Unstandardized canonical discriminant


functions evaluated at group means

ANALISIS DISKRIMINAN
Prior Probabilities for Groups

Gender
Male
Female
Total

Prior
.500
.500
1.000

Cases Used in Analysis


Unweighted Weighted
9
9.000
7
7.000
16
16.000

ANALISIS DISKRIMINAN
Classification Function Coefficients

Cholesterol
(Constant)

Gender
Male
Female
.887
.657
-99.967
-55.134

Fisher's linear discriminant functions

Skor kolesterol pada laki-laki

= -99,967 + 0,887 kolesterol awal

Skor kolesterol pada perempuan = -55,134 + 0,657 kolesterol awal


Selisih antar keduanya (skor Z)

= -44,833 + 0,23 kolesterol awal

Skor Z sebelumnya

= -12,491 + 0,063 kolesterol awal

ANALISIS DISKRIMINAN
Casewise Statistics
Highest Group

Original

Cross-validated a

Case Number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

Actual Group
0
0
0
1
0
1
0
1
0
0
1
1
1
0
0
1
0
0
0
1
0
1
0
1
0
0
1
1
1
0
0
1

Predicted
Group
0
0
0
1
0
1
0
1
0
0
1
1
1
0
0
1
0
0
0
1
0
1
0
1
0
0
1
1
1
0
0
1

P(D>d | G=g)
p
df
.105
.405
.561
.403
.764
.836
.911
.935
.119
.561
.403
.627
.583
.624
.036
.354
.047
.353
.523
.332
.743
.816
.903
.927
.059
.523
.332
.581
.532
.592
.005
.280

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1

P(G=g | D=d)
.679
1.000
1.000
.974
.996
.997
.998
.998
.727
1.000
.974
1.000
1.000
.993
1.000
1.000
.615
1.000
1.000
.969
.995
.996
.997
.997
.681
1.000
.969
1.000
1.000
.990
1.000
1.000

Second Highest Group


Squared
Mahalanobis
Distance to
Centroid
2.635
.693
.337
.700
.091
.043
.013
.007
2.434
.337
.700
.236
.301
.240
4.376
.858
3.928
.863
.407
.939
.107
.054
.015
.008
3.556
.407
.939
.304
.390
.287
7.932
1.169

Group
1
1
1
0
1
0
1
0
1
1
0
0
0
1
1
0
2
2
2
1
2
1
2
1
2
2
1
1
1
2
2
1

P(G=g | D=d)
.321
.000
.000
.026
.004
.003
.002
.002
.273
.000
.026
.000
.000
.007
.000
.000
.385
.000
.000
.031
.005
.004
.003
.003
.319
.000
.031
.000
.000
.010
.000
.000

Squared
Mahalanobis
Distance to
Centroid
4.133
20.148
17.951
7.950
11.258
11.897
12.561
12.782
4.393
17.951
7.950
17.155
17.681
10.026
33.040
21.001
4.868
19.813
17.133
7.839
10.530
11.087
11.676
11.875
5.071
17.133
7.839
16.249
16.840
9.493
47.320
21.003

For the original data, squared Mahalanobis distance is based on canonical functions.
For the cross-validated data, squared Mahalanobis distance is based on observations.
a. Cross validation is done only for those cases in the analysis. In cross validation, each case is classified by the functions derived from all cases other than that case.

Discriminant
Scores

Function 1
-.024
2.432
2.180
-1.220
1.299
-1.850
1.488
-1.976
.039
2.180
-1.220
-2.542
-2.605
1.110
3.691
-2.983

ANALISIS DISKRIMINAN
Classification Resultsb,c

Original

Count
%

Cross-validated a

Count
%

Gender
Male
Female
Male
Female
Male
Female
Male
Female

Predicted Group
Membership
Male
Female
9
0
0
7
100.0
.0
.0
100.0
9
0
0
7
100.0
.0
.0
100.0

Total

a. Cross validation is done only for those cases in the analysis. In


cross validation, each case is classified by the functions derived
from all cases other than that case.
b. 100.0% of original grouped cases correctly classified.
c. 100.0% of cross-validated grouped cases correctly classified.

9
7
100.0
100.0
9
7
100.0
100.0

ANALISIS DISKRIMINAN

Kesimpulan:
Analisis

Wilks Lambda (sig <0.001)


Variable in analysis (Variabel yang membedakan
gender laki-laki dan perempuan adalah kadar
kolesterol awal)
Model diskriminannya:
Skor Z = -12,491 + 0,063 kadar kolesterol awal
Model di atas mempunyai ketepatan
mengklasifikasikan gender sebesar 100% (ketepatan
sangat tinggi), dan model dapat digunakan untuk
mengklasifikasikan gender dari data kolesterol awal

You might also like