Do the chronotype findings depend on cyclic group curves?

A controlled spline sensitivity for the MeLiDos near-eye analysis

Author

MeLiDos secondary analysis

Published

November 11, 2026

This notebook compares the primary chronotype models with a sensitivity that retains the cyclic shared daily curve and makes the group and site deviations noncyclic. The sample, response, photoperiod adjustment, participant curves, participant-day intercepts, and elapsed-time ordering are the same. The question is whether changing this one modelling choice materially changes the fitted daily patterns and evening-versus-morning contrasts.

The fitted patterns and in-sample R² change little. For extreme chronotypes, the larger evening/morning factor after MSFsc remains in both specifications. The earlier candidate interval, around 9.6–11.3 hours before MSFsc, no longer excludes a factor of 1 with the noncyclic group margins. Its inferential status therefore depends on the spline specification.

The analysis uses the prepared MeLiDos data described in the main report, with 140 participants, 778 participant-days, and 35,949 valid half-hours (Zauner et al. 2026; MeLiDos analysis project 2026). The response is log10(melEDI + 0.1), where melEDI is the half-hour arithmetic mean of valid near-eye melanopic equivalent daylight illuminance. Each half-hour contains at least 15 valid minutes. Chronotype quartiles use the full sample’s frozen MSFsc cutoffs. Day type comes from the diary assessment assigned to the waking date.

The sensitivity has a direct consequence for interpretation: a cyclic common curve does not make a noncyclic group curve periodic. In the phase model, the model coordinate runs from 0 to 24 hours after MSFsc. Its unconstrained join is therefore at MSFsc itself, displayed at 0 hours, inside the phase plots. In the clock model, it is at midnight. The endpoint checks below evaluate both sides explicitly.

1 Reproducible setup and matched models

The clock and phase models use the same observations and sequence boundaries. Table 1 records the analytical sample.

source("R/setup.R")
source("R/report_tables.R")
source("R/models.R")
source("R/inference.R")
source("R/diagnostics.R")
source("R/plots.R")
source("R/noncyclic_sz.R")
cfg$nthreads <- 1L

# The separate output prefix protects the primary model caches.
primary_clock <- readRDS("results/models/primary_clock.rds")
primary_phase <- readRDS("results/models/primary_phase.rds")
stopifnot(identical(primary_clock$data$participant_day_key,
                    primary_phase$data$participant_day_key),
          identical(primary_clock$data$response, primary_phase$data$response),
          identical(primary_clock$data$AR_start, primary_phase$data$AR_start))
show_table(count_sample(primary_clock$data))
Table 1: Analytical sample shared by both time representations and both spline specifications.
Participants Participant-days Valid half-hours
140 778 35,949

Both specifications are Gaussian additive mixed models fitted with mgcv::bam(method = "fREML", discrete = TRUE) (Wood 2017; Wood et al. 2017). The sensitivity changes the time margin in four sum-to-zero (sz) terms: chronotype quartile, work/free day, their interaction, and site. All four use ordinary cubic regression splines (cr) with k = 12. The sum-to-zero restrictions and separate penalties remain in place.

The common time curve stays cyclic (cc, k = 12). The participant-specific curves stay cyclic (fs with a cc margin, k = 10), and the time-by-photoperiod tensor interaction keeps its cyclic time margin (ti, cc × cr, 12 × 5). The main photoperiod smooth remains cr, k = 5, and the participant-day random intercept remains unchanged. Thus this sensitivity addresses the sz margins specifically. It does not make every daily component noncyclic.

noncyclic_sz_formula()
response ~ s(t, bs = "cc", k = 12) + s(t, quartile, bs = "szcr", 
    xt = list(bs = "cr"), k = 12) + s(t, daytype, bs = "szcr", 
    xt = list(bs = "cr"), k = 12) + s(t, quartile, daytype, bs = "szcr", 
    xt = list(bs = "cr"), k = 12) + s(t, site, bs = "szcr", xt = list(bs = "cr"), 
    k = 12) + s(photo, bs = "cr", k = 5) + ti(t, photo, bs = c("cc", 
    "cr"), k = c(12, 5)) + s(t, participant, bs = "fs", xt = list(bs = "cc"), 
    k = 10) + s(participant_day, bs = "re")
<environment: 0x79a51afe00>

The locally defined szcr constructor delegates to mgcv’s native sz constructor and returns the native sz.interaction class. It supplies 12 evenly spaced time knots from 0 to 24 to the cr margins. This is needed because ordinary cubic regression splines require a full knot sequence, whereas the retained cyclic terms use the shared boundary knots c(0, 24). No installed package or namespace is modified. Removing the cyclic restriction also restores the ordinary cubic margin’s linear null-space component, so the available coefficient dimensions can increase despite the same nominal k.

smooth.info.szcr.smooth.spec
function (object) 
{
    object$tensor.possible <- TRUE
    object
}
smooth.construct.szcr.smooth.spec
function (object, data, knots) 
{
    local_knots <- knots
    local_knots[["t"]] <- seq(0, 24, length.out = object$bs.dim)
    mgcv:::smooth.construct.sz.smooth.spec(object, data, local_knots)
}

The fitting helper reuses the primary model’s complete ordered data frame and preprocessing object. It first fits without AR correlation, exports the basis and mean-residual checks, then estimates lag-one residual correlation within the original true-elapsed sequences. The final fit uses that estimate. Smoothing and AR correlation are re-estimated under each specification, using the same procedure. No residual sequence crosses a participant-day, an omitted bin, a gap, or an ambiguous daylight-saving link. Phase wrapping does not reorder observations. Table 2 shows the two sensitivity fits recovered or created by this execution.

# Cached models are reused only when the input-model checksum, formula,
# knot sequence and mgcv version agree with the stored signature.
noncyclic_clock <- noncyclic_sz_fit("clock")
noncyclic_phase <- noncyclic_sz_fit("phase")
show_table(bind_rows(model_summary(noncyclic_clock),
                       model_summary(noncyclic_phase)) |>
  select(axis, rho, convergence, participants, participant_days, half_hours),
  digits = 4)
Table 2: Cache-aware fitting results for the two noncyclic-sz models.
Axis Rho Convergence Participants Participant-days Valid half-hours
clock 0.5937 TRUE 140 778 35,949
phase 0.5958 TRUE 140 778 35,949

The analytical entry point Rscript --vanilla R/run_noncyclic_sz.R generates the diagnostics, standardized predictions, 10,000-draw contrast bands, boundary checks, and exported comparisons below. Rendering checks and reuses the fitted models; it does not repeat coefficient simulations. Substantive choices are shown here, while reusable prediction and checking functions are in R/noncyclic_sz.R.

2 Model checks before interpreting the curves

Table 3 compares the numerical diagnostic flags before interpreting the fitted patterns.

diagnostics <- read.csv("results/tables/noncyclic_sz_diagnostic_comparison.csv")
show_table(diagnostics |>
  select(model, axis, convergence_ok, basis_flag, standardized_lag1,
         spread_ratio, cyclic_ok, participants, participant_days, half_hours),
  digits = 4)
Table 3: Matched diagnostic comparison. The spread ratio is the largest divided by the smallest residual standard deviation across fitted-value deciles. Every fit uses 140 participants, 778 participant-days and 35,949 half-hours.
Model Axis Convergence ok Basis flag Standardized lag1 Spread ratio Cyclic ok Participants Participant-days Valid half-hours
Near-eye clock TRUE FALSE 0.0789 5.6357 TRUE 140 778 35,949
Near-eye phase TRUE FALSE 0.0802 5.9118 TRUE 140 778 35,949
noncyclic_sz clock TRUE FALSE 0.0790 5.7286 FALSE 140 778 35,949
noncyclic_sz phase TRUE FALSE 0.0804 5.8218 FALSE 140 778 35,949

cyclic_ok = FALSE is expected when the sensitivity produces unequal endpoints. It is a consequence of the chosen model, not an optimizer failure. The remaining diagnostic checks evaluate convergence, basis adequacy, residual shape and spread, concurvity, and raw and AR-standardized serial correlation within individual elapsed-time sequences. Figure 1 shows the residual distribution and spread; Figure 2 shows serial dependence within individual sequences.

knitr::include_graphics(c("results/figures/noncyclic_sz_clock_appraise.png",
                         "results/figures/noncyclic_sz_phase_appraise.png"))
Residual diagnostic panels for clock and phase sensitivity models. The plots compare residual quantiles, fitted values and responses; a low-exposure floor compresses residual spread at the lower end. Both use 140 participants and 778 participant-days.
(a) Clock time
Residual diagnostic panels for clock and phase sensitivity models. The plots compare residual quantiles, fitted values and responses; a low-exposure floor compresses residual spread at the lower end. Both use 140 participants and 778 participant-days.
(b) MSFsc-relative time
Figure 1: Diagnostic panels for the noncyclic-sz clock and phase models. Each model uses 140 participants, 778 participant-days and 35,949 valid half-hours.
knitr::include_graphics(c("results/figures/noncyclic_sz_clock_acf.png",
                         "results/figures/noncyclic_sz_phase_acf.png"))
Two autocorrelation figures compare raw and AR-standardized residuals within elapsed-time sequences. AR standardization reduces the short-lag correlation in both clock and phase models. Each fit uses 140 participants and 778 participant-days.
(a) Clock time
Two autocorrelation figures compare raw and AR-standardized residuals within elapsed-time sequences. AR standardization reduces the short-lag correlation in both clock and phase models. Each fit uses 140 participants and 778 participant-days.
(b) MSFsc-relative time
Figure 2: Within-sequence residual autocorrelation. Curves show medians and shading shows the 10th to 90th percentiles across eligible sequences; counts by lag are in the exported ACF tables. Both models use 140 participants, 778 participant-days and 35,949 half-hours.

Zero light exposure maps to a response of −1 under log10(melEDI + 0.1). Near this floor, residual spread is mechanically compressed. Table 4 checks whether the large full-sample spread ratio persists among positive observations and above a fitted exposure of 1 lx. These are diagnostic subsets of the existing fits, not alternative fitted models.

floor_checks <- bind_rows(lapply(list(noncyclic_clock, noncyclic_phase), function(b) {
  d <- mutate(b$data, fitted = as.numeric(fitted(b$fit)),
              residual = as.numeric(residuals(b$fit)))
  strata <- list(All = rep(TRUE, nrow(d)),
                 Positive = d$metric_value_lx > 0,
                 `Fitted at least 1 lx` = d$fitted >= log10(1.1))
  bind_rows(lapply(names(strata), function(stratum) {
    subset <- d[strata[[stratum]], ]
    spread <- subset |>
      mutate(decile = ntile(fitted, 10)) |>
      summarise(residual_sd = sd(residual), half_hours = n(),
                participants = n_distinct(participant_key), .by = decile)
    stopifnot(all(spread$half_hours >= 100), all(spread$participants >= 5))
    bind_cols(tibble(axis = b$axis, stratum = stratum,
                     residual_SD_ratio = max(spread$residual_sd) /
                       min(spread$residual_sd)), count_sample(subset))
  }))
}))
save_table(floor_checks, "noncyclic_sz_floor_check")
show_table(floor_checks, digits = 3)
Table 4: Residual spread by exposure stratum for the noncyclic-sz fits. Deciles are recalculated within each stratum. The full fits still use 140 participants, 778 participant-days and 35,949 half-hours; rows show the diagnostic subset’s own counts.
Axis Stratum Residual SD ratio Participants Participant-days Valid half-hours
clock All 5.729 140 778 35,949
clock Positive 1.197 140 778 24,600
clock Fitted at least 1 lx 1.410 140 778 23,874
phase All 5.822 140 778 35,949
phase Positive 1.170 140 778 24,600
phase Fitted at least 1 lx 1.396 140 778 23,856

The full-sample SD ratios of 5.73 and 5.82 fall to 1.20 and 1.17 among positive observations, and to 1.41 and 1.40 above a fitted exposure of 1 lx. This supports an exposure-floor explanation for most of the full-sample spread contrast. Gaussian intervals remain an approximation close to zero exposure, but the full-sample spread ratio alone does not justify treating the entire fitted pattern as unreliable. A model that explicitly accommodates the zero-exposure floor, or a participant-level refitting bootstrap, would target interval calibration more directly than changing the cyclic constraints.

The full clock basis checks, phase basis checks, clock concurvity, and phase concurvity are exported. High overlap among hierarchical population, site and participant curves limits interpretation of isolated terms.

3 In-sample fit

Table 5 compares the two specifications on the same observations. Ordinary R² changes from 0.79512 to 0.79522 for clock time and from 0.79364 to 0.79357 for phase. These changes are less than 0.011 percentage points. Adjusted R² is also nearly unchanged, with a small increase for clock time and a small decrease for phase.

fit_comparison <- read.csv("results/tables/noncyclic_sz_fit_comparison.csv")
show_table(fit_comparison |>
  select(model, axis, adjusted_R2, ordinary_R2, deviance_explained,
         edf, coefficients, rho, participants, participant_days, half_hours),
  digits = 5)
Table 5: In-sample fit on the same response and observations. Ordinary R² is 1 minus residual sum of squares divided by total response sum of squares. Adjusted R² and deviance explained come from mgcv.
Model Axis Adjusted R² Ordinary R² Deviance explained Edf Coefficients Rho Participants Participant-days Valid half-hours
Near-eye clock 0.78869 0.79512 0.79512 1,095.20789 2,258 0.59399 140 778 35,949
noncyclic_sz clock 0.78873 0.79522 0.79522 1,105.97496 2,273 0.59371 140 778 35,949
Near-eye phase 0.78697 0.79364 0.79364 1,127.07141 2,258 0.59600 140 778 35,949
noncyclic_sz phase 0.78682 0.79357 0.79357 1,140.59102 2,273 0.59585 140 778 35,949

These values include the fitted participant and day effects. They describe fit to the observed sample. This targeted sensitivity does not repeat predictive validation or Shapley attribution. No fREML score or restricted-likelihood comparison is used to choose between specifications with different null spaces.

4 Standardized daily curves and contrasts

Population predictions exclude site, participant and participant-day effects. They average over the same common photoperiod distribution, giving each participant equal weight and each of their observed days equal weight. Overall curves use the same participant-weighted work/free mixture for every quartile. Both fits use the same grid and reference population.

The striped phase region uses the published group-average DLMO-to-MSFsc offsets from Facer-Childs et al. (2019). MSFsc remains the phase coordinate; the band does not estimate each participant’s DLMO.

Intensity panels show back-transformed log-scale predictions in lux on a symlog axis. They represent a fitted transformed-scale location, not the arithmetic mean of raw lux. Contrasts are factors for melEDI + 0.1, so 1 is no difference. The new bands cover the same 20 registered contrasts and 10-minute grid using 10,000 coefficient draws, with 95% simultaneous coverage within each time coordinate, matching the primary analysis. The covariance treatment is recorded in the clock metadata and phase metadata.

No interval claim is made where a contributing group/day cell contains fewer than four participants. Counts shown in panels are unique people and participant-days per curve or contrast arm. Time-varying support is retained in the exported curve and contrast tables. Candidate intervals are formed on the native 0–24 coordinate and are never merged across the newly unconstrained join.

Figure 3 shows the overall exposure patterns, and Figure 4 compares the corresponding evening/morning factors. Figure 5 and Figure 6 separate the same comparison by diary day type.

knitr::include_graphics("results/figures/noncyclic_sz_patterns_overall.png")
Four panels compare morning and evening near-eye exposure curves for moderate and extreme chronotypes. Clock panels are above phase panels. Solid noncyclic-sz and dashed cyclic-sz curves are close; the phase sensitivity is split at zero hours. Participant and participant-day counts appear beside every curve.
Figure 3: Overall standardized curves. Solid lines and pointwise bands show the noncyclic-sz sensitivity; dashed lines show the primary cyclic-sz fit. Counts are shown for every curve. The striped phase region is the published group-average DLMO reference; it is not an individual DLMO measurement.
knitr::include_graphics("results/figures/noncyclic_sz_contrasts_overall.png")
Four panels compare evening-to-morning exposure factors for moderate and extreme groups on clock and phase coordinates. Solid sensitivity and dashed primary factors are shown with simultaneous sensitivity bands. A factor of one denotes equal exposure, and counts identify both contrast arms.
Figure 4: Overall evening/morning factors. New simultaneous bands and candidate points are shown for the noncyclic-sz sensitivity, with the primary fitted contrast dashed. Phase curves and ribbons are split at MSFsc. Counts identify both sides of each contrast.
knitr::include_graphics(c("results/figures/noncyclic_sz_patterns_work.png",
                         "results/figures/noncyclic_sz_contrasts_work.png"))
Work-day pattern and contrast figures compare cyclic and noncyclic group curves for moderate and extreme morning and evening chronotypes. Panels distinguish clock time from MSFsc-relative time, split the sensitivity at phase zero, and list contributing participants and participant-days.
(a) Patterns
Work-day pattern and contrast figures compare cyclic and noncyclic group curves for moderate and extreme morning and evening chronotypes. Panels distinguish clock time from MSFsc-relative time, split the sensitivity at phase zero, and list contributing participants and participant-days.
(b) Evening / morning factors
Figure 5: Work-day patterns and evening/morning contrasts. Counts are the unique participants and days contributing to each curve or contrast arm.
knitr::include_graphics(c("results/figures/noncyclic_sz_patterns_free.png",
                         "results/figures/noncyclic_sz_contrasts_free.png"))
Free-day pattern and contrast figures compare cyclic and noncyclic group curves for moderate and extreme morning and evening chronotypes. Panels distinguish clock time from MSFsc-relative time, split the sensitivity at phase zero, and list contributing participants and participant-days.
(a) Patterns
Free-day pattern and contrast figures compare cyclic and noncyclic group curves for moderate and extreme morning and evening chronotypes. Panels distinguish clock time from MSFsc-relative time, split the sensitivity at phase zero, and list contributing participants and participant-days.
(b) Evening / morning factors
Figure 6: Free-day patterns and evening/morning contrasts. Counts are the unique participants and days contributing to each curve or contrast arm.

The all-contrast comparison includes extreme/moderate, free/work, two-way and three-way interaction contrasts. The contrast stability table compares their fitted values and candidate grid points. Separate clock and phase candidate-window tables retain exact interval sample counts.

For the overall extreme comparison, the fitted phase contrasts are close: their median absolute difference is 0.016 on the log10 scale across the daily grid. Their uncertainty is more sensitive. The original earlier interval from −11.25 to −9.58 hours no longer excludes a factor of 1 with the noncyclic sz bands. The post-MSFsc interval remains, from +0.92 to +4.25 hours with a mean evening/morning factor of 13.24, compared with +0.92 to +4.42 hours and 14.00 under the primary specification. Table 6 shows the intervals and their actual contributing samples. Neither specification identifies an overall moderate-group interval.

phase_windows <- bind_rows(
  read.csv("results/tables/primary_phase_significant_windows.csv"),
  read.csv("results/tables/noncyclic_sz_phase_significant_windows.csv")) |>
  filter(contrast == "evening_morning_Extreme_Overall")
show_table(phase_windows |>
  select(model, start, end, duration_hours, mean_ratio,
         positive_participants, positive_days, negative_participants, negative_days),
  digits = 3)
Table 6: Candidate phase intervals for the overall extreme evening/morning comparison. The first two rows use the primary cyclic sz fit; the sensitivity retains only the post-MSFsc interval. Counts cover observations inside each reported interval.
Model Start End Duration hours Mean ratio Positive participants Positive days Negative participants Negative days
Near-eye −11.250 −9.583 1.667 0.158 34 188 36 192
Near-eye 0.917 4.417 3.500 13.999 34 190 36 200
noncyclic_sz 0.917 4.250 3.333 13.243 34 190 36 200

5 What happens at the daily join?

Table 7 evaluates the population curve at native coordinates 24 and 0 without wrapping 24 back to 0. The reported factor is the predicted value of melEDI + 0.1 immediately after the join divided by its value immediately before. A factor of 1 means the curve joins continuously. The interval is pointwise and describes this endpoint contrast only. The overall phase factors range from about 0.87 to 1.09 under the sensitivity, compared with exactly 1 under the cyclic model. All their pointwise intervals include 1.

population_joins <- read.csv("results/tables/noncyclic_sz_boundary_curves.csv")
show_table(population_joins |>
  filter(context == "Overall") |>
  select(model, axis, quartile, ratio, ratio_lower, ratio_upper,
         participants, participant_days, half_hours), digits = 4)
Table 7: Population endpoint factors for overall curves. Clock joins occur at midnight; phase joins occur at MSFsc (displayed 0 hours). Each row shows that quartile’s analytical sample.
Model Axis Quartile Ratio Ratio lower Ratio upper Participants Participant-days Valid half-hours
Near-eye clock Q1 1.0000 1.0000 1.0000 36 200 9,241
Near-eye clock Q2 1.0000 1.0000 1.0000 34 188 8,656
Near-eye clock Q3 1.0000 1.0000 1.0000 36 200 9,227
Near-eye clock Q4 1.0000 1.0000 1.0000 34 190 8,825
noncyclic_sz clock Q1 1.2344 0.8518 1.7888 36 200 9,241
noncyclic_sz clock Q2 0.9121 0.6759 1.2309 34 188 8,656
noncyclic_sz clock Q3 0.8693 0.6288 1.2018 36 200 9,227
noncyclic_sz clock Q4 0.9785 0.6889 1.3898 34 190 8,825
Near-eye phase Q1 1.0000 1.0000 1.0000 36 200 9,241
Near-eye phase Q2 1.0000 1.0000 1.0000 34 188 8,656
Near-eye phase Q3 1.0000 1.0000 1.0000 36 200 9,227
Near-eye phase Q4 1.0000 1.0000 1.0000 34 190 8,825
noncyclic_sz phase Q1 1.0638 0.8334 1.3579 36 200 9,241
noncyclic_sz phase Q2 0.9787 0.7935 1.2073 34 188 8,656
noncyclic_sz phase Q3 0.8736 0.7083 1.0774 36 200 9,227
noncyclic_sz phase Q4 1.0871 0.8583 1.3769 34 190 8,825

Registered contrasts can also jump, even after common components cancel. Table 8 compares each evening/morning factor immediately after versus before the join. Values differ from the exposure ratios above: here a factor of 2 would mean that the evening/morning contrast itself doubles at the boundary.

contrast_joins <- read.csv("results/tables/noncyclic_sz_boundary_contrasts.csv")
show_table(contrast_joins |>
  filter(context == "Overall", family == "Evening minus morning") |>
  select(model, axis, description, ratio, ratio_lower, ratio_upper,
         positive_participants, positive_days, negative_participants, negative_days),
  digits = 4)
Table 8: Endpoint changes in the overall evening/morning contrasts. Counts refer to the evening (positive) and morning (negative) contrast arms. Other registered contrasts are retained in the export.
Model Axis Description Ratio Ratio lower Ratio upper Positive participants Positive days Negative participants Negative days
Near-eye clock Evening minus morning: Moderate 1.0000 1.0000 1.0000 36 200 34 188
Near-eye clock Evening minus morning: Extreme 1.0000 1.0000 1.0000 34 190 36 200
noncyclic_sz clock Evening minus morning: Moderate 0.9531 0.5763 1.5762 36 200 34 188
noncyclic_sz clock Evening minus morning: Extreme 0.7927 0.4269 1.4721 34 190 36 200
Near-eye phase Evening minus morning: Moderate 1.0000 1.0000 1.0000 36 200 34 188
Near-eye phase Evening minus morning: Extreme 1.0000 1.0000 1.0000 34 190 36 200
noncyclic_sz phase Evening minus morning: Moderate 0.8926 0.6362 1.2523 36 200 34 188
noncyclic_sz phase Evening minus morning: Extreme 1.0219 0.6776 1.5413 34 190 36 200

The complete population endpoint table includes work and free days. The registered-contrast endpoint table covers all 20 contrasts per axis and specification. The primary cyclic curves provide the numerical continuity reference.

6 Recommendation and reproducibility checks

Retain cyclic group margins for a repeating 24-hour exposure pattern. The noncyclic specification is useful as a sensitivity check, but it allows a group-specific change at an arbitrarily selected start of the day, including a jump at MSFsc inside the phase display. Here the fitted overall jumps are modest and their intervals include continuity; freeing the endpoints provides no material fit gain. The earlier extreme-group interval should be described as sensitive to the spline specification, while the post-MSFsc contrast persists. The Gaussian approximation near the exposure floor is a separate issue from the choice of endpoint constraint. Table 9 verifies the controlled comparison.

acceptance <- bind_rows(
  noncyclic_sz_acceptance(noncyclic_clock, primary_clock),
  noncyclic_sz_acceptance(noncyclic_phase, primary_phase))
stopifnot(all(acceptance$passed))
show_table(acceptance, digits = 10)
Table 9: Focused acceptance checks for the controlled sensitivity. All checks must pass before the comparison is used. The paired models each contain 140 participants, 778 participant-days and 35,949 half-hours.
Axis Check Error Tolerance Passed
clock Identical analysis data and row ordering 0.0000000000 0.0000000000 TRUE
clock Identical preprocessing and cutoffs 0.0000000000 0.0000000000 TRUE
clock Sample: 140 participants, 778 days, 35949 half-hours 0.0000000000 0.0000000000 TRUE
clock Same smooth term labels 0.0000000000 0.0000000000 TRUE
clock Unchanged basis definition s(t) 0.0000000000 0.0000000000 TRUE
clock Retained cyclic endpoint s(t) 0.0000000000 0.0000000100 TRUE
clock Noncyclic cr margin s(t,quartile) 0.0000000000 0.0000000000 TRUE
clock Sum-to-zero s(t,quartile) across quartile 0.0000000000 0.0000000100 TRUE
clock Noncyclic cr margin s(t,daytype) 0.0000000000 0.0000000000 TRUE
clock Sum-to-zero s(t,daytype) across daytype 0.0000000000 0.0000000100 TRUE
clock Noncyclic cr margin s(t,quartile,daytype) 0.0000000000 0.0000000000 TRUE
clock Sum-to-zero s(t,quartile,daytype) across quartile 0.0000000000 0.0000000100 TRUE
clock Sum-to-zero s(t,quartile,daytype) across daytype 0.0000000000 0.0000000100 TRUE
clock Noncyclic cr margin s(t,site) 0.0000000000 0.0000000000 TRUE
clock Sum-to-zero s(t,site) across site 0.0000000000 0.0000000100 TRUE
clock Unchanged basis definition s(photo) 0.0000000000 0.0000000000 TRUE
clock Unchanged basis definition ti(photo,t) 0.0000000000 0.0000000000 TRUE
clock Retained cyclic endpoint ti(photo,t) 0.0000000000 0.0000000100 TRUE
clock Unchanged basis definition s(t,participant) 0.0000000000 0.0000000000 TRUE
clock Retained cyclic endpoint s(t,participant) 0.0000000000 0.0000000100 TRUE
clock Unchanged basis definition s(participant_day) 0.0000000000 0.0000000000 TRUE
phase Identical analysis data and row ordering 0.0000000000 0.0000000000 TRUE
phase Identical preprocessing and cutoffs 0.0000000000 0.0000000000 TRUE
phase Sample: 140 participants, 778 days, 35949 half-hours 0.0000000000 0.0000000000 TRUE
phase Same smooth term labels 0.0000000000 0.0000000000 TRUE
phase Unchanged basis definition s(t) 0.0000000000 0.0000000000 TRUE
phase Retained cyclic endpoint s(t) 0.0000000000 0.0000000100 TRUE
phase Noncyclic cr margin s(t,quartile) 0.0000000000 0.0000000000 TRUE
phase Sum-to-zero s(t,quartile) across quartile 0.0000000000 0.0000000100 TRUE
phase Noncyclic cr margin s(t,daytype) 0.0000000000 0.0000000000 TRUE
phase Sum-to-zero s(t,daytype) across daytype 0.0000000000 0.0000000100 TRUE
phase Noncyclic cr margin s(t,quartile,daytype) 0.0000000000 0.0000000000 TRUE
phase Sum-to-zero s(t,quartile,daytype) across quartile 0.0000000000 0.0000000100 TRUE
phase Sum-to-zero s(t,quartile,daytype) across daytype 0.0000000000 0.0000000100 TRUE
phase Noncyclic cr margin s(t,site) 0.0000000000 0.0000000000 TRUE
phase Sum-to-zero s(t,site) across site 0.0000000000 0.0000000100 TRUE
phase Unchanged basis definition s(photo) 0.0000000000 0.0000000000 TRUE
phase Unchanged basis definition ti(photo,t) 0.0000000000 0.0000000000 TRUE
phase Retained cyclic endpoint ti(photo,t) 0.0000000000 0.0000000100 TRUE
phase Unchanged basis definition s(t,participant) 0.0000000000 0.0000000000 TRUE
phase Retained cyclic endpoint s(t,participant) 0.0000000000 0.0000000100 TRUE
phase Unchanged basis definition s(participant_day) 0.0000000000 0.0000000000 TRUE

The checks verify identical observations, preprocessing and row order; unchanged definitions and knots of the retained bases; noncyclic cubic sz margins; and the actual fitted design’s sum-to-zero constraints. Coefficient bases may be rotated or centered by mgcv when the model changes, so the checks compare their defining function spaces rather than arbitrary coefficient coordinates. The input and model checksums and runtime record document the R version, package versions, OpenMP library, formula, knot sequence and exact commands. All models and outputs use the noncyclic_sz prefix and leave the primary caches intact.

7 References

Facer-Childs, Elise R., Brunno M. Campos, Benita Middleton, Debra J. Skene, and Andrew P. Bagshaw. 2019. “Circadian Phenotype Impacts the Brain’s Resting-State Functional Connectivity, Attentional Performance, and Sleepiness.” Sleep 42 (5): zsz033. https://doi.org/10.1093/sleep/zsz033.
MeLiDos analysis project. 2026. ZaunerEtAl_bioRxiv_2026: Analysis Repository and Prepared MeLiDos Data. Released. https://github.com/tscnlab/ZaunerEtAl_bioRxiv_2026.
Wood, Simon N. 2017. Generalized Additive Models: An Introduction with R. 2nd ed. Chapman and Hall/CRC. https://doi.org/10.1201/9781315370279.
Wood, Simon N., Zheyuan Li, Gavin Shaddick, and Nicole H. Augustin. 2017. “Generalized Additive Models for Gigadata: Modeling the U.K. Black Smoke Network Daily Data.” Journal of the American Statistical Association 112 (519): 1199–210. https://doi.org/10.1080/01621459.2016.1195744.
Zauner, Johannes, Altug Didikoglu, Sam Aerts, et al. 2026. “The Health-Relevant Architecture of the Everyday Light Exposome.” Preprint. bioRxiv, ahead of print, September 23. https://doi.org/10.64898/2026.06.04.730226.