* 各個構面題向平均,產生分析用的變項variables
* 1. Supervisor UPB, SUPB
egen SUPB = rowmean(sUPB1 sUPB2 sUPB3 sUPB4 sUPB5 sUPB6)
* 2. Employee Perceptions of Supervisor Moral Decoupling, EPSMD
egen EPSMD =rowmean(epsmd1 epsmd2 epsmd3 epsmd4 epsmd5)
* 3. Emplyee UPB, EUPB
egen EUPB = rowmean(eUPB1 eUPB2 eUPB3 eUPB4 eUPB5 eUPB6)
* 4. Supervisor Moral Decoupling
egen SMD = rowmean(smd1 smd2 smd3 smd4 smd5)
* 5. Performance Evaluation, PE
egen PE = rowmean (perf1 perf2 perf3)
* 6. Supervisor Moral Disengagement, SMDIS
egen SMDIS = rowmean (smdis1 smdis2 smdis3 smdis4 smdis5 smdis6 smdis7 smdis8)
* 各個構面題向平均,產生分析用的變項variables
* 1. Supervisor UPB, SUPB
egen SUPB = rowmean(sUPB1 sUPB2 sUPB3 sUPB4 sUPB5 sUPB6)
* 2. Employee Perceptions of Supervisor Moral Decoupling, EPSMD
egen EPSMD =rowmean(epsmd1 epsmd2 epsmd3 epsmd4 epsmd5)
* 3. Emplyee UPB, EUPB
egen EUPB = rowmean(eUPB1 eUPB2 eUPB3 eUPB4 eUPB5 eUPB6)
* 4. Supervisor Moral Decoupling
egen SMD = rowmean(smd1 smd2 smd3 smd4 smd5)
* 5. Performance Evaluation, PE
egen PE = rowmean (perf1 perf2 perf3)
* 6. Supervisor Moral Disengagement, SMDIS
egen SMDIS = rowmean (smdis1 smdis2 smdis3 smdis4 smdis5 smdis6 smdis7 smdis8)
* 產生研究變項之後,設定label變數標籤。
* 記得隨時存檔。
. label variable SUPB "1. Supervisor UPB"
. label variable EPSMD "2. Employee Perceptions of Supervisor Moral Decoupling"
. label variable EUPB "3. Emplyee UPB"
. label variable SMD "4. Supervisor Moral Decoupling"
. label variable PE "5. Performance Evaluation"
. label variable SMDIS "6. Supervisor Moral Disengagement"


產生研究變項之後,設定label變數標籤。記得隨時存檔。
<aside> 💡 Pearson 相關係數
</aside>
. pwcorr SUPB EPSMD EUPB SMD PE SMDIS
| SUPB EPSMD EUPB SMD PE SMDIS
-------------+------------------------------------------------------
SUPB | 1.0000
EPSMD | 0.2044 1.0000
EUPB | 0.3425 0.1610 1.0000
SMD | 0.1455 0.4670 0.2657 1.0000
PE | 0.0128 -0.0271 0.0259 -0.1430 1.0000
SMDIS | 0.3108 0.1565 0.4359 0.2587 -0.1620 1.0000
. pwcorr SUPB EPSMD EUPB SMD PE SMDIS, **star(0.05)**
| SUPB EPSMD EUPB SMD PE SMDIS
-------------+------------------------------------------------------
SUPB | 1.0000
EPSMD | 0.2044* 1.0000
EUPB | 0.3425* 0.1610* 1.0000
SMD | 0.1455 0.4670* 0.2657* 1.0000
PE | 0.0128 -0.0271 0.0259 -0.1430 1.0000
SMDIS | 0.3108* 0.1565* 0.4359* 0.2587* -0.1620* 1.0000
. pwcorr SUPB EPSMD EUPB SMD PE SMDIS, **sig**
| SUPB EPSMD EUPB SMD PE SMDIS
-------------+------------------------------------------------------
SUPB | 1.0000
|
|
EPSMD | 0.2044 1.0000
| 0.0065
|
EUPB | 0.3425 0.1610 1.0000
| 0.0000 0.0328
|
SMD | 0.1455 0.4670 0.2657 1.0000
| 0.0541 0.0000 0.0004
|
PE | 0.0128 -0.0271 0.0259 -0.1430 1.0000
| 0.8663 0.7211 0.7333 0.0583
|
SMDIS | 0.3108 0.1565 0.4359 0.2587 -0.1620 1.0000
| 0.0000 0.0380 0.0000 0.0005 0.0318
. pwcorr SUPB EPSMD EUPB SMD PE SMDIS, **star(0.05) sig
* Pearson相關係數,呈現小數點後四位數。**
| SUPB EPSMD EUPB SMD PE SMDIS
-------------+------------------------------------------------------
SUPB | 1.0000
|
|
EPSMD | 0.2044* 1.0000
| 0.0065
|
EUPB | 0.3425* 0.1610* 1.0000
| 0.0000 0.0328
|
SMD | 0.1455 0.4670* 0.2657* 1.0000
| 0.0541 0.0000 0.0004
|
PE | 0.0128 -0.0271 0.0259 -0.1430 1.0000
| 0.8663 0.7211 0.7333 0.0583
|
SMDIS | 0.3108* 0.1565* 0.4359* 0.2587* -0.1620* 1.0000
| 0.0000 0.0380 0.0000 0.0005 0.0318
|
* 繪製相關係數
. graph matrix SUPB EPSMD EUPB SMD PE SMDIS

<aside> 💡 Spearman 相關係數
</aside>
. spearman SUPB EPSMD EUPB SMD PE SMDIS
(obs=176)
| SUPB EPSMD EUPB SMD PE SMDIS
-------------+------------------------------------------------------
SUPB | 1.0000
EPSMD | 0.1817 1.0000
EUPB | 0.3078 0.1762 1.0000
SMD | 0.1115 0.4425 0.2587 1.0000
PE | -0.0265 -0.0379 -0.0448 -0.1349 1.0000
SMDIS | 0.2299 0.0933 0.4685 0.2578 -0.2682 1.0000
. spearman SUPB EPSMD EUPB SMD PE SMDIS, **pw**
(obs=176)
| SUPB EPSMD EUPB SMD PE SMDIS
-------------+------------------------------------------------------
SUPB | 1.0000
EPSMD | 0.1817 1.0000
EUPB | 0.3078 0.1762 1.0000
SMD | 0.1115 0.4425 0.2587 1.0000
PE | -0.0265 -0.0379 -0.0448 -0.1349 1.0000
SMDIS | 0.2299 0.0933 0.4685 0.2578 -0.2682 1.0000
. spearman SUPB EPSMD EUPB SMD PE SMDIS, **pw star(0.05)**
(obs=176)
| SUPB EPSMD EUPB SMD PE SMDIS
-------------+------------------------------------------------------
SUPB | 1.0000
EPSMD | 0.1817* 1.0000
EUPB | 0.3078* 0.1762* 1.0000
SMD | 0.1115 0.4425* 0.2587* 1.0000
PE | -0.0265 -0.0379 -0.0448 -0.1349 1.0000
SMDIS | 0.2299* 0.0933 0.4685* 0.2578* -0.2682* 1.0000
<aside> 💡 Note: Pearson &Spearman 係數合併顯示
</aside>
. findit corsp
. corsp SUPB EPSMD EUPB SMD PE SMDIS
Pearson/Spearman correlation matrix
| SUPB EPSMD EUPB SMD PE SMDIS
-------------+------------------------------------------------------
SUPB | 1.0000 0.1817 0.3078 0.1115 -0.0265 0.2299
EPSMD | 0.2044 1.0000 0.1762 0.4425 -0.0379 0.0933
EUPB | 0.3425 0.1610 1.0000 0.2587 -0.0448 0.4685
SMD | 0.1455 0.4670 0.2657 1.0000 -0.1349 0.2578
PE | 0.0128 -0.0271 0.0259 -0.1430 1.0000 -0.2682
SMDIS | 0.3108 0.1565 0.4359 0.2587 -0.1620 1.0000
* 小數點之後,顯示三位數。
. corsp SUPB EPSMD EUPB SMD PE SMDIS, format(%7.3f)
Pearson/Spearman correlation matrix
| SUPB EPSMD EUPB SMD PE SMDIS
-------------+------------------------------------------------------
SUPB | 1.000 0.182 0.308 0.111 -0.027 0.230
EPSMD | 0.204 1.000 0.176 0.442 -0.038 0.093
EUPB | 0.343 0.161 1.000 0.259 -0.045 0.469
SMD | 0.145 0.467 0.266 1.000 -0.135 0.258
PE | 0.013 -0.027 0.026 -0.143 1.000 -0.268
SMDIS | 0.311 0.157 0.436 0.259 -0.162 1.000
* 小數點之後,顯示兩位數,以及顯著水準sig。
. corsp SUPB EPSMD EUPB SMD PE SMDIS, format(%7.2f) sig
Pearson/Spearman correlation matrix
| SUPB EPSMD EUPB SMD PE SMDIS
-------------+------------------------------------------------------
SUPB | 1.00 0.18 0.31 0.11 -0.03 0.23
| 0.00 0.02 0.00 0.14 0.73 0.00
|
EPSMD | 0.20 1.00 0.18 0.44 -0.04 0.09
| 0.01 0.00 0.02 0.00 0.62 0.22
|
EUPB | 0.34 0.16 1.00 0.26 -0.04 0.47
| 0.00 0.03 0.00 0.00 0.55 0.00
|
SMD | 0.15 0.47 0.27 1.00 -0.13 0.26
| 0.05 0.00 0.00 0.00 0.07 0.00
|
PE | 0.01 -0.03 0.03 -0.14 1.00 -0.27
| 0.87 0.72 0.73 0.06 0.00 0.00
|
SMDIS | 0.31 0.16 0.44 0.26 -0.16 1.00
| 0.00 0.04 0.00 0.00 0.03 0.00
* 限定呈現 pw calculates pairwise correlation coefficients
. corsp SUPB EPSMD EUPB SMD PE SMDIS, format(%7.2f) sig pw
<aside> 💡 整理成敘述統計表
</aside>

* 敘述統計表,需要 M (mean 平均數) 與 SD (Standard Deviation 標準差)-> summ
. summ SUPB EPSMD EUPB SMD PE SMDIS
Variable | Obs Mean Std. dev. Min Max
-------------+---------------------------------------------------------
SUPB | 176 2.141098 1.378339 1 7
EPSMD | 176 2.842045 1.473982 1 7
EUPB | 176 2.198864 1.246419 1 5.5
SMD | 176 3.015909 1.361418 1 7
PE | 176 5.460227 1.211976 1 7
-------------+---------------------------------------------------------
SMDIS | 176 2.134233 1.175343 1 6.5
<aside> 💡 重要:對角線報告信度係數Cronbach Alph值
</aside>
