實作範例 · 在 EXCEL 重現論文研究

彙總論文補充資料,並與文中表格核對

一位研究生為重現 2025 年 PLOS ONE 一篇涵蓋中國 337 個城市 PM2.5 污染的論文,上傳論文及其 Excel 補充檔。他們請 在該活頁簿建立模型係數摘要工作表,與論文表 6 列出的平均值核對,並附上圖表。

以動態公式建立摘要,從 PDF 讀取表 6,六個平均值全部相符。當使用者要求加入第二份補充檔,它複製工作表,擴充摘要至十二個因素,並重繪為排序後的兩色長條圖。表 6 的六個新平均值則需一次追問才補上。

  • 12 / 12與我們重新計算相符的因素列
  • ≤ 0.0005每個因素與表 6 的差異
  • 3次請求,最後一次為追問
  • 0.52共消耗積分

開啟真實檔案

論文及其補充檔案的連結位於 PLOS ONE。三份活頁簿都是此次操作的實際產出。下載後以 Excel 開啟。

檔案來源: PLOS ONE, 「中國 PM2.5 與 O3 污染時空模式及自然與社會經濟影響因素的識別」(2025)及其 S1、S2 補充檔案。以 CC BY 4.0 授權發布。作者並未審閱或認可此範例。

01 · 起始檔案

337 個城市、24 欄係數,以及 PDF 中的表格

S1 檔只有一個工作表,每個城市一列,六個社會經濟因素各有局部係數(beta_)、標準誤、t 值及 p 值。S2 檔以同樣結構列出六個自然因素。論文在 PDF 第 13 頁的表 6 報告各係數的平均值。

S1_File_data_for_Fig5.xlsx修改前
A1City
ABCDEFGT
1Citybeta_Popdenbeta_PGDPbeta_Prosecbeta_Energybeta_Roaddenbeta_NDVIp_Popden
2Da Hinggan Ling Mountains0.569-0.0960.0800.025-0.087-0.0670.000
3Heihe0.570-0.0990.1080.025-0.091-0.0690.000
4Yichun0.569-0.1020.1170.025-0.093-0.0720.000
5Hulunbuir0.566-0.1050.0880.025-0.089-0.0630.000
6Qiqihar0.567-0.1060.1110.024-0.092-0.0660.000
…
338Shihezi0.404-0.207-0.0730.037-0.080-0.1300.000
PM2.5_socioeconomic
資料工作表的前幾列(A–G 欄及 T 欄的 Popden p 值;此處隱藏其他欄)。

02 · 要求 1

「加入 Summary 工作表,與表 6 核對」

學生輸入的內容

I'm replicating the PM2.5 paper attached (PLOS ONE 2025). S1_File_data_for_Fig5.xlsx has the local MGWR results for 337 cities on sheet 'PM2.5_socioeconomic' (beta_, se_, t_ and p_ columns for Popden, PGDP, Prosec, Energy, Roadden, NDVI).

In this workbook, add a sheet 'Summary' with one row per factor and these columns:
1. Mean, SD (sample), Min, Median, Max of the beta_ coefficient
2. Number of cities with p < 0.05 (use the p_ column), split into positive and negative beta
3. The mean reported in the paper's Table 6 (PDF page 13), and the difference from our mean

Use formulas pointing at the data sheet where you can. Then add a native Excel bar chart of the six mean coefficients on the Summary sheet. Leave the data sheet unchanged.

的處理方式

  • 新增「Summary」工作表,每個因素一列:以全部 337 列的公式計算各 beta_ 欄的平均值、樣本標準差、最小值、中位數及最大值。
  • 以 p_ 和 beta_ 欄的 COUNTIFS 計算 p < 0.05 的城市數,按 beta 的正負分開。
  • 讀取 PDF 第 13 頁的表 6,填入六個平均值,再新增以公式計算的差異欄。
  • 新增六個平均值的原生 Excel 長條圖,資料工作表保持不變。
S1_File_data_for_Fig5.xlsx同一檔案
A1Factor
ABCDEFGHIJ
1FactorMean (beta)SD sample (beta)Min (beta)Median (beta)Max (beta)Significant p<0.05, beta>0 (n)Significant p<0.05, beta<0 (n)Paper Table 6 meanDifference (our mean minus paper)
2Popden0.43960.2030-0.00880.38871.089726300.4400-0.0004
3PGDP-0.04060.1479-0.4360-0.05650.30662648-0.04100.0004
4Prosec0.08420.0493-0.08230.10320.1208166160.08400.0002
5Energy0.02070.00510.01410.01960.0439000.0210-0.0003
6Roadden-0.10180.0057-0.1092-0.1029-0.074500-0.10200.0002
7NDVI-0.03110.0358-0.1439-0.02380.015708-0.0310-0.0001
PM2.5_socioeconomicSummary新
新「Summary」工作表的交付版本。綠色數字為公式;點擊即可查看。
S1_File_data_for_Fig5.xlsxSummary 工作表

Mean MGWR coefficient (beta) by factor

-0.20.00.20.40.6Mean betaPopdenPGDPProsecEnergyRoaddenNDVIFactorMean (beta) · Popden: 0.440Mean (beta) · PGDP: -0.041Mean (beta) · Prosec: 0.084Mean (beta) · Energy: 0.021Mean (beta) · Roadden: -0.102Mean (beta) · NDVI: -0.031
「Summary」工作表的圖表,在此依交付檔內的資料重繪。

我們與資料核對了: 我們依 337 列重新計算每項統計:六列皆相符至小數三位,計數也相符(Popden 正值 263、PGDP 26 和 48、Prosec 166 和 16、NDVI 負值 8),每個平均值與表 6 相符至小數三位;差異欄只有四捨五入差距,最大 0.0004。

03 · 要求 2

「現在加入第二個檔案的自然因素」

學生輸入的內容

Now add the natural factors. In the same workbook:

1. Copy sheet 'PM2.5_natural' from S2_File_data_for_Fig6.xlsx (attached) in as a second data sheet, unchanged.
2. Extend the Summary to all 12 factors (Tem, Pre, Ws, Rh, Ap, Sd below the six socioeconomic ones), same columns, including the Table 6 means.
3. Change the chart to a horizontal bar chart of all 12 means, sorted from largest to smallest, with socioeconomic and natural factors in two different colours and a legend saying which is which.

Don't change the existing six Summary rows.

的處理方式

  • 將 S2 檔案的「PM2.5_natural」工作表連同全部 337 列複製到活頁簿。
  • 以相同公式新增 Tem、Pre、Ws、Rh、Ap、Sd 的六列,前六列保持不變。
  • 在 L1:N13 建立輔助表格:十二個平均值由大至小排序,每組一欄。
  • 將圖表替換為該表格的水平長條圖:十二條長條,社會經濟與自然因素以兩色區分,附有圖例。
  • 新因素的表 6 平均值留白:這次請求讀取的檔案並不包含論文。完成訊息說明此事,並表示若附上論文就可補填。
S1_File_data_for_Fig5.xlsx同一檔案
A1Factor
ABCDEFGHIJ
1FactorMean (beta)SD sample (beta)Min (beta)Median (beta)Max (beta)Significant p<0.05, beta>0 (n)Significant p<0.05, beta<0 (n)Paper Table 6 meanDifference (our mean minus paper)
2Popden0.43960.2030-0.00880.38871.089726300.4400-0.0004
3PGDP-0.04060.1479-0.4360-0.05650.30662648-0.04100.0004
4Prosec0.08420.0493-0.08230.10320.1208166160.08400.0002
5Energy0.02070.00510.01410.01960.0439000.0210-0.0003
6Roadden-0.10180.0057-0.1092-0.1029-0.074500-0.10200.0002
7NDVI-0.03110.0358-0.1439-0.02380.015708-0.0310-0.0001
8Tem-0.52830.3172-0.9254-0.55540.08280282
9Pre-0.29080.2039-0.8050-0.24260.05680164
10Ws0.04240.2451-0.75040.05600.58927724
11Rh0.03650.1642-0.25360.00000.3140525
12Ap0.63540.00890.61440.63540.64863370
13Sd-0.21270.0132-0.2385-0.2124-0.17570337
PM2.5_socioeconomicSummaryPM2.5_natural新
第 2 次請求後的 Summary 工作表:六個自然因素(黃色),其 I、J 欄仍空白。
S1_File_data_for_Fig5.xlsxSummary 工作表

Mean MGWR coefficient (beta) by factor

  • Socioeconomic
  • Natural
新圖表,在此依交付檔內的資料重繪。
S1_File_data_for_Fig5.xlsx輔助表格
L1Factor
LMN
1FactorSocioeconomicNatural
2Ap00.635383529
3Popden0.43959286640
4Prosec0.084240647310
5Ws00.04236848852
6Rh00.0364906784
7Energy0.020651232830
8NDVI-0.031148981010
9PGDP-0.040595839970
10Roadden-0.10181387450
11Sd0-0.2126999148
12Pre0-0.2908334881
13Tem0-0.5282885883
Summary
同一工作表的 L 至 N 欄:排序後的十二個平均值,分成圖表讀取的兩個數列。

我們與資料核對了: 六個新列與我們依 S2 資料重新計算的結果相符,複製的工作表數字與 S2 檔相同,前六列保持不變,圖表則有兩個按排序排列、各含十二個值的數列。

04 · 跟進請求

「表 6 的平均值仍然缺少」

學生再次附上論文時輸入的內容

The Table 6 means for Tem, Pre, Ws, Rh, Ap and Sd are still missing in the Summary. They are in Table 6 on page 13 of the paper attached. Please fill them in, with the difference from our mean, like the six socioeconomic rows.

的處理方式

  • 讀取第 13 頁表 6 的六個自然因素平均值,並填入。
  • 以與前六列相同的公式計算它們的差異。
S1_File_data_for_Fig5.xlsx修改後
A1Factor
ABCDEFGHIJ
1FactorMean (beta)SD sample (beta)Min (beta)Median (beta)Max (beta)Significant p<0.05, beta>0 (n)Significant p<0.05, beta<0 (n)Paper Table 6 meanDifference (our mean minus paper)
2Popden0.43960.2030-0.00880.38871.089726300.4400-0.0004
3PGDP-0.04060.1479-0.4360-0.05650.30662648-0.04100.0004
4Prosec0.08420.0493-0.08230.10320.1208166160.08400.0002
5Energy0.02070.00510.01410.01960.0439000.0210-0.0003
6Roadden-0.10180.0057-0.1092-0.1029-0.074500-0.10200.0002
7NDVI-0.03110.0358-0.1439-0.02380.015708-0.0310-0.0001
8Tem-0.52830.3172-0.9254-0.55540.08280282-0.5280-0.0003
9Pre-0.29080.2039-0.8050-0.24260.05680164-0.29100.0002
10Ws0.04240.2451-0.75040.05600.589277240.04200.0004
11Rh0.03650.1642-0.25360.00000.31405250.03600.0005
12Ap0.63540.00890.61440.63540.648633700.63500.0004
13Sd-0.21270.0132-0.2385-0.2124-0.17570337-0.21300.0003
PM2.5_socioeconomicSummaryPM2.5_natural
追問後的 Summary 工作表:十二列皆完整,自然因素以黃色顯示。

我們與資料核對了: 十二列全部與我們依兩個資料工作表重新計算的結果相符,表 6 的十二個平均值也都正確(Tem −0.528、Pre −0.291、Ws 0.042、Rh 0.036、Ap 0.635、Sd −0.213);S1 資料工作表未變,複製的 S2 工作表保留相同數字。

在作者自己的檔案中重現研究

一起閱讀論文及補充資料,以可供查核的公式計算統計,並把已發布的數字放在旁邊,讓差異一目了然。

繼續閱讀

繼續閱讀另一個實作案例

查看全部 19 個實作案例 學術界 的所有案例