关于「实践与预注册检验」,《内感受解离与自主神经修复》给出的定量结论是什么?
结论:第八章给出四步核查表与一项预注册两臂试验,对照为结构匹配的外部注意(主要结局为第 6 周身体警觉量表;最小关注效应 0.35 个标准差;每臂随机 195 例,共 390 例),并预先指定一个阴性对照结局,用以识别泛化的预期效应。书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序)、原典与作者的模型和假说;除注明的文献数据外,书中数据都是合成的。
数据口径:把注意力放到身体内部而不去解释它,能不能解除交感防御、让内脏与盆腔的微循环自行恢复?本书是教学与研究用的数学模型与方法学讨论,不是医疗建议。 第五,RMSSD 与高频功率随呼吸方式大幅改变:在平均心搏间期完全不变的合成记录中,RMSSD 从 18.4 变到 31.4 毫秒,而 6 次/分时高频指标反而塌陷,因为呼吸峰已移出频带。
对照数据表
下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 0.35, 195, 390
outcome = mean of 2 occasions; single-occasion reliability 0.75 -> 0.857 normal theory: n = 129.051 -> 130 per arm (attenuated d = 0.324) simulation with integer scores, a floor at 0 and the screening cut-off at 28: n = 130/arm: power 0.847 (s.e. 0.009); treated arm at floor 0.1% n = 150/arm: power 0.893 (s.e. 0.008); treated arm at floor 0.1% n = 165/arm: power 0.915 (s.e. 0.007); treated arm at floor 0.1% n = 180/arm: power 0.946 (s.e. 0.006); treated arm at floor 0.1% smallest n with power - 2 s.e. >= 0.90: 165 error rate there with no effect: 0.021 against a nominal 0.025, since the simulated rejection counts only the favourable direction against a two-sided critical value; the reported trial test is two-sided at 0.05. planned: 165 analysable per arm; 15 % loss -> 195 randomised per arm, 390 in all sensitivity, analysable per arm (normal theory, reliability 0.86): SESOI \ rho_base 0.4 0.6 0.8 0.25 SD 331 253 143 0.35 SD 170 130 74 0.50 SD 84 64 37 The trial is powered for the PRIMARY comparison only. The pre-specified negative-control outcome (a measure the framework predicts should NOT change) is reported with its interval and is not powered; its role is to show whether a generic expectancy effect moved everything, and a change there of similar size to the primary effect voids the primary claim.
查看完整验算程序
# Chapter 8. Sample size for the pre-registered two-arm trial. Single primary
# comparison: non-judgmental interoceptive attention against a structurally
# matched external-focus control. Single primary outcome: body-vigilance score
# at week 6 by ANCOVA (baseline score, site). Planning assumptions: SESOI 0.35
# SD, baseline-outcome correlation 0.60, single-occasion reliability 0.75,
# outcome = mean of 2 occasions, two-sided 0.05, 90 % power. Normal theory
# first, then a simulation with an integer-scored scale, a floor, and the
# screening cut-off that selects participants into the trial.
import math
import random
from statistics import NormalDist
Z = NormalDist().inv_cdf
D, RHO_BASE, REL1, K_OCC = 0.35, 0.60, 0.75, 2
ITEMS, ITEM_MAX = 12, 6 # 12 items scored 0-6: range 0-72
# screening cut-off for elevated vigilance
SCREEN_MIN = 28
def reliability(k):
return k * REL1 / (1 + (k - 1) * REL1)
def n_formula(d=D, rho_xx=1.0, rho_base=RHO_BASE, power=0.90, alpha=0.05):
d_obs = d * math.sqrt(rho_xx)
za, zb = Z(1 - alpha / 2), Z(power)
return 2 * (za + zb) ** 2 * (1 - rho_base ** 2) / d_obs ** 2 + za ** 2 / 4
def invert3(S):
a, b, c = S[0]
d, e, f = S[1]
g, h, i = S[2]
det = a * (e * i - f * h) - b * (d * i - f * g) + c * (d * h - e * g)
return [
[(e * i - f * h) / det, (c * h - b * i) / det, (b * f - c * e) / det],
[(f * g - d * i) / det, (a * i - c * g) / det, (c * d - a * f) / det],
[(d * h - e * g) / det, (b * g - a * h) / det, (a * e - b * d) / det],
]
# population before screening, scale points
TRUE_MEAN, TRUE_SD = 26.0, 9.0
def one_trial(rng, n, delta_sd):
"""delta_sd is the true effect in SD units, applied to the treated arm."""
rows = []
delta = delta_sd * TRUE_SD
err_sd = TRUE_SD * math.sqrt(1 - RHO_BASE ** 2)
meas_sd = TRUE_SD * math.sqrt((1 - REL1) / REL1 / K_OCC)
for arm in (1, 0):
got = 0
while got < n:
lat_b = rng.gauss(TRUE_MEAN, TRUE_SD)
obs_b = lat_b + rng.gauss(0, meas_sd)
b = min(ITEMS * ITEM_MAX, max(0, round(obs_b)))
if b < SCREEN_MIN:
continue # screened out, as in the real trial
lat_y = (TRUE_MEAN + RHO_BASE * (lat_b - TRUE_MEAN)
- delta * arm + rng.gauss(0, err_sd))
y = min(
ITEMS * ITEM_MAX, max(0, round(lat_y + rng.gauss(0, meas_sd)))
)
rows.append((arm, b, y))
got += 1
n2 = len(rows)
mb = math.fsum(r[1] for r in rows) / n2
X = [(1.0, float(r[0]), r[1] - mb) for r in rows]
Y = [float(r[2]) for r in rows]
S = [
[math.fsum(x[i] * x[j] for x in X) for j in range(3)]
for i in range(3)
]
v = [math.fsum(x[i] * y for x, y in zip(X, Y)) for i in range(3)]
inv = invert3(S)
beta = [math.fsum(inv[i][j] * v[j] for j in range(3)) for i in range(3)]
res = [
y - math.fsum(bb * xx for bb, xx in zip(beta, x))
for x, y in zip(X, Y)
]
s2 = math.fsum(r * r for r in res) / (n2 - 3)
df = n2 - 3
z = Z(0.975)
# Cornish-Fisher t quantile
tcrit = z + (z ** 3 + z) / (4 * df)
# sign: lower score is better
t = -beta[1] / math.sqrt(s2 * inv[1][1])
at_floor = sum(1 for r in rows if r[0] == 1 and r[2] == 0) / n
return t > tcrit, at_floor
if __name__ == "__main__":
rel = reliability(K_OCC)
print(
"outcome = mean of {} occasions; single-occasion reliability {:.2f}"
" -> {:.3f}".format(K_OCC, REL1, rel)
)
n0 = n_formula(rho_xx=rel)
print("normal theory: n = {:.3f} -> {} per arm (attenuated d = {:.3f})"
.format(n0, math.ceil(n0), D * math.sqrt(rel)))
rng = random.Random(2026)
chosen = None
print("\nsimulation with integer scores, a floor at 0 and the screening")
print("cut-off at {}:".format(SCREEN_MIN))
for n in (math.ceil(n0), 150, 165, 180):
res = [one_trial(rng, n, D) for _ in range(1500)]
pw = sum(r[0] for r in res) / len(res)
se = math.sqrt(pw * (1 - pw) / len(res))
fl = math.fsum(r[1] for r in res) / len(res)
print(
" n = {:3d}/arm: power {:.3f} (s.e. {:.3f}); treated arm at"
" floor {:.1%}".format(n, pw, se, fl)
)
if chosen is None and pw - 2 * se >= 0.90:
chosen = n
if chosen is None:
chosen = 180
t1 = sum(one_trial(rng, chosen, 0.0)[0] for _ in range(1500)) / 1500
print(" smallest n with power - 2 s.e. >= 0.90: {}".format(chosen))
print(
" error rate there with no effect: {:.3f} against a nominal 0.025,"
" since".format(t1)
)
print(
" the simulated rejection counts only the favourable direction"
" against a"
)
print(
" two-sided critical value; the reported trial test is two-sided at"
" 0.05."
)
plan = math.ceil(chosen / 0.85)
print(
"\nplanned: {} analysable per arm; 15 % loss -> {} randomised"
"\nper arm, {} in all".format(chosen, plan, 2 * plan)
)
print(
"\nsensitivity, analysable per arm (normal theory, reliability"
" {:.2f}):".format(rel)
)
print(" SESOI \\ rho_base 0.4 0.6 0.8")
for d in (0.25, 0.35, 0.50):
print(" {:4.2f} SD ".format(d) + "".join(
"{:8d}".format(math.ceil(n_formula(d=d, rho_xx=rel, rho_base=r)))
for r in (0.4, 0.6, 0.8)))
print(
"\nThe trial is powered for the PRIMARY comparison only. The"
" pre-specified"
)
print(
"negative-control outcome (a measure the framework predicts"
" should NOT"
)
print(
"change) is reported with its interval and is not powered; its role"
" is to"
)
print(
"show whether a generic expectancy effect moved everything, and a"
" change"
)
print(
"there of similar size to the primary effect voids the primary claim."
)唯一数据源与引用
范雅福(Fan, Y.). (2026). 《内感受解离、突显网络切换与内脏自主神经修复》第 8 章「实践与预注册检验」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24020418
DOI: 10.5281/zenodo.24020418 · 阅读本章所在专著 · 5DL-B-053 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026053,
author = {Fan, Yafu},
title = {Interoceptive Decoupling, Salience-Network Switching and Autonomic Visceral Restoration},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.24020418},
url = {https://doi.org/10.5281/zenodo.24020418}
}