What does Illuminance Dose and Refractive Development conclude, in numbers, about “Axial Length in a Linear Mixed Model: How Dose Enters the Growth Slope”?

Answer: Chapter 3 writes axial growth as a linear mixed model; in simulation the longitudinal estimate detects the light effect every time, the cross-sectional one with a chance of only 0.110.

Scope of the numbers: Marked boxes separate published evidence, runnable computations (20 programs), classical sources and the author's hypotheses.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.110

true B-0.12 mm/y per log10 lux; 101 children, 4 visits
rep two-stage B SE cross B cross SE sd(slopes)
0-0.0783 0.0249 -0.0952 0.1598 0.0820
1-0.1234 0.0263 -0.2563 0.1754 0.0913
2-0.1184 0.0232 -0.4547 0.1729 0.0891
over 200 replicates: mean B -0.1234, sd 0.0220, mean SE 0.0242
two-stage 95% intervals covering the truth0.990
cross-sectional: mean B -0.1284, mean SE 0.1652
share of replicates with |z| > 1.96: two-stage 1.000, cross 0.110

Key formula

\[L_{it} = (\beta_0 + u_{0i}) + (\beta_1 + \beta_2 x_i + u_{1i})\,t + \varepsilon_{it}.\]
Show the full program
# Chapter 3. p32: A linear mixed model of axial growth, simulated and
# then recovered. Child i has length a_i + s_i * t at visits t = 0, 0.5,
# 1, 1.5 years (as in Read et al. 2015), with s_i = 0.20 + B * (x_i - 3)
# + u_i, where x_i is log10 of mean daily lux. B = -0.12 mm/y per log
# unit is the published slope; spreads and noise are illustrative. We
# compare a two-stage estimator (per-child slopes, then slopes on dose)
# with a cross-sectional fit: final length on dose, divided by 1.5 y,
# which ignores that children start at different lengths. Published
# context (Read 2015): ages 10 to 15, 41 myopes and 60 non-myopes,
# baseline 24.46 and 23.24 mm, growth over the study 0.19 and 0.05 mm,
# low-light group near 459 lux, light effect P = 0.047.
import math
import random
import statistics

B = -0.12
N = 101
VISITS = (0.0, 0.5, 1.0, 1.5)
SD_A, SD_U, SD_E = 0.85, 0.08, 0.03
rng = random.Random(20261112)


def ols(xs, ys):
    mx, my = statistics.fmean(xs), statistics.fmean(ys)
    sxx = math.fsum((x - mx) ** 2 for x in xs)
    sxy = math.fsum((x - mx) * (y - my) for x, y in zip(xs, ys))
    b = sxy / sxx
    res = [y - my - b * (x - mx) for x, y in zip(xs, ys)]
    s2 = math.fsum(r * r for r in res) / (len(xs) - 2)
    return b, math.sqrt(s2 / sxx), my - b * mx


def run(rep):
    doses, slopes = [], []
    finals = []
    for _ in range(N):
        x = rng.gauss(3.0, 0.35)
        a = rng.gauss(23.7, SD_A)
        s = 0.20 + B * (x - 3.0) + rng.gauss(0, SD_U)
        ys = [a + s * t + rng.gauss(0, SD_E) for t in VISITS]
        b_i, _, _ = ols(list(VISITS), ys)
        doses.append(x)
        slopes.append(b_i)
        finals.append(ys[-1])
    b2, se2, _ = ols(doses, slopes)
    bc, sec, _ = ols(doses, finals)
    span = VISITS[-1]
    return b2, se2, bc / span, sec / span, statistics.pstdev(slopes)


print("true B = {:.2f} mm/y per log10 lux; {} children, {} visits"
      .format(B, N, len(VISITS)))
print("  rep  two-stage B  SE      cross B  cross SE  sd(slopes)")
covered, nrep, reps = 0, 200, []
for rep in range(nrep):
    b2, se2, bp, sep, sds = run(rep)
    covered += 1 if abs(b2 - B) <= 1.959964 * se2 else 0
    reps.append((b2, se2, bp, sep, sds))
for rep in range(3):
    b2, se2, bp, sep, sds = reps[rep]
    print("  {:3d}  {:11.4f}  {:6.4f}  {:7.4f}  {:8.4f}  {:10.4f}".format(
        rep, b2, se2, bp, sep, sds))
mean_b = statistics.fmean(r[0] for r in reps)
sd_b = statistics.pstdev([r[0] for r in reps])
mean_se = statistics.fmean(r[1] for r in reps)
print("over {} replicates: mean B {:.4f}, sd {:.4f}, mean SE {:.4f}"
      .format(nrep, mean_b, sd_b, mean_se))
print("two-stage 95% intervals covering the truth: {:.3f}".format(
    covered / nrep))
pw2 = len([r for r in reps if abs(r[0] / r[1]) > 1.959964]) / nrep
pwc = len([r for r in reps if abs(r[2] / r[3]) > 1.959964]) / nrep
print("cross-sectional: mean B {:.4f}, mean SE {:.4f}".format(
    statistics.fmean(r[2] for r in reps),
    statistics.fmean(r[3] for r in reps)))
print("share of replicates with |z| > 1.96: two-stage {:.3f},"
      " cross {:.3f}".format(pw2, pwc))

Single source and citation

Fan, Y. (2026). Outdoor Illuminance Dose, Accommodative Lag and Peripheral-Defocus Optics in Refractive Development (Version 1.0.0), Chapter 3: Axial Length in a Linear Mixed Model: How Dose Enters the Growth Slope. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-189 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026189,
  author    = {Fan, Yafu},
  title     = {Outdoor Illuminance Dose, Accommodative Lag and Peripheral-Defocus Optics in Refractive Development},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book