drmTMB 0.6.0
First-impression formula surface (issue #776)
-
(1 + x || g), thelme4/brmsspelling for uncorrelated random effects, is now accepted and desugars to(1 | g) + (0 + x | g). Previously R parsed||as its own operator, the random-term parser recognised only|, and the term survived into the fixed-effect design matrix, where it aborted with'length = N' in coercion to 'logical(1)'— a message whoseNis the row count, so it read as a size problem and was not. The two spellings are now the same model: on a 20-group fixture they agree in log-likelihood and in every fixed-effect coefficient, while the correlated(1 + x | g)block stays distinct. - This is a formula rewrite onto a route drmTMB already fits and has certified. No likelihood, no TMB change, and no new capability claim: no ledger cell changes tier, and the desugaring is inert on formulas that contain no
||. - A categorical slope under
||is rejected rather than silently accepted. Inlme4||splits by formula term rather than by design-matrix column, so a factor slope keeps its within-factor correlations and is not in fact uncorrelated; the error names the explicit two-term form instead of copying that behaviour. - Smooth terms (
s(),te(),ti(),t2()) are rejected by name before the model frame is evaluated. A reader arriving frommgcvorgamlsspreviously got R’s owncould not find function "s"; the message now points atpoly()andsplines::ns()and states that penalised smooths are not implemented. - A user-facing error no longer leaks internal roadmap vocabulary: the univariate Gaussian parameter check named “Phase 1” instead of naming the supported distributional parameters.
- The simple-grouping rule (
(1 | g1/g2)and(1 | g1:g2)are not implemented) is now locked by tests on both themuandsigmaparse paths, where the guard is duplicated.
Reader-facing plotting surface complete (issue #58)
- The figure gallery now demonstrates all six public plotting functions. Alongside the existing
plot_parameter_surface(), it adds worked examples ofworm_plot()andqq_plot()(on a correctly specified fit paired with a deliberately mis-specified one, so a reader can see what misfit looks like),centile_chart(),plot.profile.drmTMB()viaprofile(), and a fittedplot_corpairs()correlation row with a computed profile interval. - The gallery’s hand-typed illustrative figures now declare themselves as fixtures in their own titles, not only in captions, so a screenshot cannot be mistaken for a fitted result. A long-standing inverted axis label on the simulation bias panel is corrected. Documentation only; no code change.
Arc 4c ordinary mu random-slope profile coverage
- The exact independent
murandom-slope cells forskew_normal()(mc-0464),tweedie()(mc-0539), andzero_one_beta()(mc-0575) are nowinference_ready_with_caveatsfor the standard ML-Laplace profile interval. A retained 1,200-attempt-per-M Fir campaign supports a deployment floor of M=16 for each family at true slope SD 0.50. The ledger estimator remainsML; no cell earnssupportedstatus. - This narrow result does not cover other SDs, observation counts, group grids, correlated or labelled slopes, scale/shape random effects, structured effects, REML, or AGHQ. Skew-normal retains slant-identification risk, Tweedie retains small-M zero-boundary profiles, and zero-one beta’s coverage is generator-qualified — a disclosed leak of machine-exact ones from the nominally-interior sampler means the interval claim holds only under the generator as executed; a strictly-interior rerun was specified, reviewed, and decided against (no faithful strictly-interior rendering of the intended generator exists), so this is the adjudicated terminal characterization, not a pending fix. Campaign point-bias and Wald coverage are unavailable because of a disclosed reporting defect; profile coverage is unaffected and the prospective extractor is repaired.
Beta q1 phylogenetic location intercept
- Native univariate ML
beta()now admits one unlabelled intercept-onlyphylo(1 | species, tree = tree)term inmu. Familysigmaremains a fixed-effect formula and controlsphi = sigma^(-2); it is distinct from the constant latent phylogenetic location-effect SD. - An independent
dbeta()plus augmented-GMRF joint-likelihood oracle and central-difference gradient check cover the exact implementation. A fresh, predeclared 800-fit Totoro campaign retained 400 attempts at each ofg = 512, m = 4andg = 1024, m = 4; all fits converged withpdHess = TRUE. The log-latent-SD recovery gate held atg = 512and passed only at the exact testedg = 1024, m = 4cell. - This is a
point_fit_recoveryadmission only for that exact tested regime, notg >= 1024or a universal minimum species count. Moderate-informationg = 256andg = 512results remain explicit HOLDs. REML, q2/q4, labels, phylogenetic slopes, phylogeny in familysigma, directsd()regression,zero_one_beta(), missing/external data, intervals, coverage, and broader Beta or all-family claims remain outside this PR.
Exact supplied-relatedness q2 REML intercept (Arc 1b-S2R)
-
drmTMB(..., REML = TRUE)now admits one exact bivariate-Gaussian supplied-relatedness location cell: matching labelledrelmat(1 | p | id, K = K)intercepts inmu1andmu2. Both formulas must use the same label, group ordering, and supplied covariance matrixK;sigma1,sigma2, andrho12must be intercept-only; response pairs must be complete; weights must equal one; and no knownmeta_V(), additional random effect, direct-SD formula, orcorpair()regression may be present. - An independent dense restricted-likelihood oracle matches the native TMB objective at the optimum and two displaced parameter vectors. A deliberately wrong precision orientation fails materially. The predeclared 2,400-fit Totoro campaign retained every attempt; every fit converged with
pdHess = TRUE, and all structured-SD, structured-correlation, and RMSE gates passed. - This is a
point_fit_recoveryadmission only. Supplied precisionQ,animal(), slopes, scale-side blocks, q4 or larger blocks, non-Gaussian families, intervals, coverage, AI-REML, andsupportedclaims remain outside this arc.
Exact bivariate-spatial q2 REML intercept (Arc 1b-S1)
-
drmTMB(..., REML = TRUE)now admits one exact bivariate-Gaussian coordinate-spatial location cell: matching labelledspatial(1 | p | site, coords = coords)terms inmu1andmu2, with intercept-onlysigma1,sigma2, andrho12, complete response pairs, unit weights, no knownmeta_V()covariance, and no additional ordinary random effect, direct-SD formula, orcorpair()regression. The spatial covariance is fixed by the coordinates; range estimation is not part of this slice. - An independent dense restricted-likelihood oracle matches the native TMB objective at the optimum and displaced parameter vectors. A predeclared 1,200-fit Totoro campaign completed without fit or convergence failures; 1,198 fits had positive-definite Hessians, and the high-information cells passed all structured-SD and latent-correlation recovery gates.
- This is a
point_fit_recoveryadmission only. Spatial slopes, range estimation, animal-model bivariate REML, supplied-Qrelatedness REML, scale-side q2, q4 or larger blocks, intervals, coverage, AI-REML, andsupportedclaims remain outside this spatial arc. Arc 1b-S2R subsequently admits only the exact matching supplied-Krelmat()q2 location-intercept cell at the same evidence tier.
Positive-continuous q1 structured location intercepts (Arc 3a)
- Native univariate ML now fits one unlabelled q1 structured intercept in
mufor Gamma-phylo(), lognormal-phylo(), and lognormal-relmat()usingKorQ. The effect enters the Gamma log-mean or lognormal log-response location predictor. Gamma-relmat()retains its existing intercept and independent one-slope route. - Focused likelihood, extractor, prediction-decomposition, K/Q parity, and rejection-neighbour tests are green. A 6,000-fit primary Totoro campaign certified lognormal-
relmat()and retained the predeclared phylogenetic intercept-RMSE HOLD. A separate, freshly seeded 2,400-fit phylogenetic addendum then passed its design-conditioned GLS-oracle and structured-field projection gates without relaxing the original threshold. All three new cells are thereforepoint_fit_recovery; no interval tier is implied. - New-route slopes, labels/q2+,
sigmastructure, jointmu/sigma, simultaneous structured providers, spatial/animal, bivariate responses, REML, intervals, coverage, andsupportedclaims remain outside this arc.
Exact-Gaussian REML for mean-side structured providers (Arc 1a)
-
drmTMB(..., REML = TRUE)now admits pure-mu, univariate Gaussianspatial(),animal(), andrelmat()terms as an unlabelled intercept or an independent intercept plus one numeric slope. These routes requiresigma ~ 1with no sigma random effect. - Independent restricted-likelihood oracles, representation-parity fixtures, and Totoro recovery and profile campaigns support the three cells at
inference_ready_with_caveats. The campaigns used spatial coordinates, animalA, and relmatK: spatial and relmat cover exactlyM={8,16,32}; the animalAcampaign covers one fixedM=8; all usen_each=20, whereMis the number of structured levels (and hence the matrix dimension) andn_eachis the number of observations per structured level. Pedigree andAinvanimal inputs and relmatQhave deterministic representation-parity evidence only, not multi-seed campaign coverage. Coverage clears the pre-specified small-sample floors but is not nominal-exact, sosupportedis withheld. - The fitted structured SD scale
s_jgives latent-field covariances_j^2 K_h; a node’s marginal SD iss_j sqrt(K_h[ii]), so it equalss_jonly when that diagonal entry is one. Slope-only, labelled or multiple slopes, sigma random effects, matchedmu+sigma, bivariate and non-Gaussian routes remain outside this Arc 1a claim.
Residual-scale random intercepts for lognormal and Gamma (Arc 2c)
-
predict(..., dpar = "sigma")now includes the fitted residual-scale random intercept forlognormal()andGamma(link = "log")models;sigma(), printed fit summaries, and the emmeans preflight use the same corrected capability detection. - A residual-scale (
sigma) random interceptsigma ~ ... + (1 | id)is now accepted forlognormal()andGamma(link = "log"), joininggaussian()(full) andnbinom2()(intercept-only) as the families that allow a random effect on a dispersion parameter. - As with the mean random effects, the
sigma-SD is fit by maximum likelihood with the Laplace approximation and can be biased downward when the number of groups or the per-group replication is small. Point recovery at 40 groups has -3% to -4% relative bias. The separate Arc 4a iid campaign promotes only the lognormal route toinference_ready_with_caveatsfor true SD 0.4,n_each=12, and exactlyM={16,32,64}; coverage is mildly anti-conservative, not nominal. Gamma retains point-recovery evidence only. Seedocs/dev-log/simulation-artifacts/2026-07-12-arc2c-sigma-recovery/anddocs/dev-log/simulation-artifacts/2026-07-12-dg3-re-sd-coverage/README-profile-iid-v2.md. Sentinels remain intests/testthat/test-arc2c-sigma-random-intercept.R. - Scope (first gate): one independent
sigmarandom intercept only. Asigmarandom slope, labelled covariance blocks, and combining asigmarandom effect with amurandom effect in the same model remain rejected until joint recovery tests exist. The other non-Gaussian families still rejectsigmarandom effects.
Random slopes for the intercept-only families (Arc 2b)
- One independent
murandom slope(0 + x | id)is now accepted for the five families that gained a random intercept in Arc 2a:binomial(),cumulative_logit(),skew_normal(),tweedie(), andzero_one_beta(). Combined with Arc 2a, every fitted univariate family now supports both a mean random intercept and an independent mean random slope. - Random-effect standard deviations for these families are fit by maximum likelihood with the Laplace approximation and can be biased downward when the number of groups or the per-group replication is small. All five have point recovery from a 60-seed sweep (per-family relative slope-SD bias of -2% to -9% at 40 groups). A separate Arc 4a iid campaign promoted the binomial route to
inference_ready_with_caveatsat true SD 0.6, 12 observations and 12 trials per observation, and exactlyM={32,64}; it is coverage-backed but mildly anti-conservative rather than certified nominal. Point-recovery evidence is indocs/dev-log/simulation-artifacts/2026-07-12-arc2b-slope-recovery/, with single-seed DG2 sentinels intests/testthat/test-arc2b-mu-random-slope.R; corrected binomial coverage evidence is indocs/dev-log/simulation-artifacts/2026-07-12-dg3-re-sd-coverage/README-profile-iid-v2.md. Later campaigns promoted cumulative-logit (mc-0227) and the three Arc 4c cells above under their own exact design-specific caveats. - Scope: one independent
muslope only. Correlated intercept-slope blocks(1 + x | id), labelled covariance blocks(0 + x | p | id), andsigma/shape/inflation-dpar random effects remain rejected for these families.
Random intercepts for every family (Arc 2a)
- An ordinary
murandom intercept(1 | group)is now accepted for the five families that previously rejected all random effects:binomial(),cumulative_logit(),skew_normal(),tweedie(), andzero_one_beta(). Every fitted family now supports at least a mean random intercept, joining the families (gaussian(),poisson(),nbinom2(),gamma(),lognormal(),beta(),beta_binomial(),student(),truncated_nbinom2()) that already did. - Fits are by maximum likelihood (Laplace). Random-effect standard deviations are recovered at a known data-generating point (per-family DG2 sentinels in
tests/testthat/test-arc2a-mu-random-intercept.R). With few or small clusters the random-effect standard deviation can be biased low under the Laplace approximation; adaptive Gauss-Hermite quadrature is the standard remedy for the non-Gaussian families and remains planned. - Scope:
mu-side intercepts only. Random slopes,sigma/shape/inflation-dpar random effects, labelled covariance blocks, and (forcumulative_logit) combining a phylogenetic effect with an ordinary intercept remain rejected in this slice.
Distributional output & adequacy layer (#747, #748)
- Every fitted family now exposes a shared fitted-distribution foundation:
drm_family_dpq()(internal registry) andfitted_distribution()return per-row density (d), CDF (p), and quantile (q) closures at the fitted, fixed-effect distributional parameters. All 18 fittedmodel_typevalues are promoted tostatus = "reference", including bivariatebiv_gaussian(marginal-only:response = 1or2selects which response’sN(mu_k, sigma_k)marginal is returned; the joint distribution andrho12are out of scope). -
residuals(fit, type = "quantile")returns Dunn-Smyth (1996) randomized quantile residuals,qnorm(F(y; theta_hat)), for every family;worm_plot()andqq_plot()draw the corresponding detrended and ordinary QQ diagnostics, with an optionalnsimmulti-realization seed envelope so a single randomized draw is not over-read. -
predict(fit, type = "quantile", prob = )returns conditional response quantiles;exceedance(fit, threshold, newdata)returnsPr(Y > threshold)(or its complement) as a thin wrapper over the shared CDF;centile_chart()draws model-conditional centile curves against one covariate. All three, and the plug-in prediction intervals, carryattr(., "calibrated") <- FALSE; none of these outputs propagatetheta_hatuncertainty. -
What the diagnostic detects, and what it does not (see
docs/dev-log/simulation-artifacts/2026-07-12-dg3-power-arm-gated/, 400-seed gated campaign across all 18 families; tweedie: 99 of 400 seeds locally, 66/99 dispersion-arm non-convergence, full run deferred to Totoro). Under a correctly specified fixed-effect model, type-I error stays near or below the nominal rate (Type-I 0.0025-0.025 across families at alpha = 0.05; the KS+PIT statistic is conservative, so power is understated, not overstated). Under a genuine distributional shape/atom mis-specification that a family cannot reabsorb through its own free parameters – heavy tails fit as Gaussian (power 0.925-0.995), overdispersion or zero-inflation ignored by a family with no free dispersion parameter (Poisson: 0.9625-0.9825), truncation ignored and a plain count model fit instead (truncated_nbinom2vs plainnbinom2: 1.0), a zero/one atom ignored and a plain beta fit instead (zero_one_beta/tweedie: 0.99-1.0) – power is high, typically >= 0.8 at n = 300-400 per arm. There is a genuine structural blind spot, not a bug: a mis-specification that a fitted family’s own free nuisance or dispersion parameter can absorb leaves the fitted-model residual marginally N(0,1) and is not detectable by this diagnostic – e.g. heteroscedasticity absorbed by Student-tnu(power 0.035 at n = 300, versus 1.0 for the same heteroscedasticity under Gaussian, which has no absorbing parameter), missing zero-inflation absorbed bynbinom2sigma(power 0.035, versus 0.9625 for the same missing zero-inflation under Poisson), and fitting a plainnbinom2/beta-binomial/Tweedie to data whose TRUE dispersion actually varies with a covariate, which its own constant dispersion parameter partially soaks up (power 0.01-0.14, versus 0.81-1.0 for the same mis-specification in Gamma/beta/lognormal, which lack a matching absorbing structure). Detecting an absorbed mis-specification is a mean-structure diagnostic’s job, not this one’s. Zero-inflation/hurdle/ zero-one-inflation mechanism mis-specification (a constant inflation probability fit when it truly varies with a covariate) splits into two patterns under the n-ladder (tested to n = 3000): forhurdle_nbinom2/zero_one_betapower stays flat at or below about 0.01 at every n – a genuine structural blind spot; forzi_nbinom2/zi_poissonpower rises with n (to about 0.11/0.06 at n = 3000), so the marginal is not identical under the mechanism mis-spec, but power stays far below the >= 0.8 detectable benchmark even at n = 3000, so it remains impractical to detect at realistic sample sizes. Neither pattern should be relied on as an adequacy check for the mechanism.gamma-vs-lognormalwrong-family detection is sample-size limited rather than structurally blind: power rises from about 0.19 at n = 300 to 0.79 at n = 1000 and 1.0 at n = 3000, so this specific mis-specification needs n well above 1000 to be reliably caught. - Honest-scope invariants apply throughout: intervals are labelled
calibrated = FALSE; a pass is worded “no detectable departure”, never “adequate” or “the model is correct”; and a distributional-output/adequacy (DG) tick on a family never changes or implies anything about that family’s own inference-tier status (e.g. skew-normal’sdiagnostic_holdfit-quality status is unaffected by its DG2/DG3 promotion) – seetests/testthat/test-dg-firewall.R. - This is fixed-effect adequacy only: for random-effect or structured fits, quantile residuals are conditional on the fixed-effect prediction, not marginal, so a departure (or its absence) is evidence about fixed-effect adequacy only. Calibrated coverage (DG4/DG5), uncertainty beyond
theta_hat, random-effect/structured residual adequacy, and bivariate joint (non-marginal) outputs remain separately authorized future work.
Missing responses: MR-T7 certification
- The generated capability ledger and live runtime oracle now reconcile all 18 fitted response routes at G3 recovery-verified, with zero G0 routes. The capability page, missing-data article, design inventory, NEWS, roadmap, and machine-readable evidence are regenerated from the same route state. This closeout adds no family, formula grammar, estimator, interval, or coverage claim: each tick remains bounded to its documented fixed, random, or structured route, and G4/G5 remain separate future evidence tiers.
Missing responses: MR-T6 count mixtures
-
response = "include"now masks fixed-effect zero-inflated Poisson, zero-inflated NB2, and hurdle NB2 responses. Each route guards its complete zero-or-positive mixture contribution before response classification, uses observed-only starts, and has separate missing-zero and missing-positive parity tests. Zero-versus-positive sentinel retapes, row/extractor contracts, and exact fixed-seed 25% MCAR recovery promote all three routes to G3. All 18 fitted response routes are now G3 recovery-verified for their documented masking slice; random/structured mixture routes, response plusmi(), REML, intervals, and coverage remain outside this arc.
Missing responses: MR-T5 truncated counts
-
response = "include"now masks positive-count responses for the non-hurdletruncated_nbinom2()route. The complete NB2 density and zero-truncation normalization are skipped together for masked rows; positive sentinels, observed-only starts, row/extractor contracts, and exact fixed-seed 25% MCAR recovery promote the ordinarymurandom-intercept route to G3. Hurdle,sigma-random, structured, response-plus-mi(), interval, and coverage claims remain outside this tranche.
Missing responses: MR-T4 encoded responses
-
response = "include"now masks beta-binomial and cumulative-logit responses. A missing success or failure count masks the entire beta-binomial row, including its derived trials; ordered-factor levels remain declared and any observed subset with an empty category rejects before cutpoints are built. Coordinated encoded-sentinel retapes, row/extractor contracts, and exact fixed-seed 25% MCAR recovery promote both routes to G3. Integer ordinal masking, broader random/structured routes, response plusmi(), intervals, and coverage remain outside this tranche.
Missing responses: MR-T3 atom and boundary families
-
response = "include"now masks missing Tweedie and zero-one beta responses. Tweedie tests retape masked rows as a zero atom and a positive continuous value; zero-one beta tests zero and one atoms against an interior value. Observed-only starts, full mixture guards, row/extractor contracts, and exact fixed-seed 25% MCAR recovery promote both fixed-effect routes to G3. Random effects, structured effects, response plusmi(), intervals, and coverage remain outside this tranche.
Missing responses: MR-T2 continuous families
-
response = "include"now masks missing Student-t, skew-normal, lognormal, and Gamma responses. Plain data-time likelihood guards prevent masked values from reaching density or positive-support transformations; observed-only starts, direct sentinel invariance, row/extractor contracts, and fixed-seed 25% MCAR recovery promote all four routes to G3. Student-t, lognormal, and Gamma are verified through their ordinary random-intercept routes; skew-normal remains fixed-effect only. This does not promote structured effects, intervals, or coverage.
Missing responses: MR-T1 verification
- The six previously admitted
response = "include"routes—univariate and bivariate Gaussian, binomial, Poisson, NB2, and beta—now share direct retaped-sentinel tests, original-row and extractor contracts, and fixed-seed 25% MCAR recovery tests. Univariate residuals areNAon masked response rows while fitted values retain the original row length. These tests promote the six routes to the capability ledger’s G3 recovery-verified tier; they do not claim interval calibration or coverage.
drmTMB 0.5.0
drmTMB 0.5.0 was numbered as the intended first CRAN release (not 1.0) — historical note, superseded: 0.5.0 was never submitted to or accepted by CRAN and was retired in favour of a more capable 0.6.0-class cut, so 0.6.0 is the actual first CRAN submission. The honest version number reflects that much of the family and inference surface is still scaffolded or recovery-grade. Throughout the dev-log and the “Q-Series v1.0” ledger, “v1.0” is reserved for the later maturity milestone that 0.5.0 deliberately does not yet claim. This entry accumulates the 0.4.x development cycle (docs/ledger alignment, non-Gaussian coverage validation, the missing-data non-Gaussian arc) into the release; earlier tagged development lines appear below.
Missing data: non-Gaussian responses and predictors
The likelihood-based missing-data layer now extends beyond Gaussian responses. Both modes are validated per family against single sources of truth (drm_missing_response_families(), drm_missing_predictor_families()), and an anti-drift test asserts that every family outside those allow-lists still rejects loudly, so an unsupported request never silently degrades to a wrong likelihood. See vignette("missing-data") for the full capability matrix.
Missing-response masking (FIML) for non-Gaussian responses.
missing = miss_control(response = "include")now marginalises missing responses out of the joint likelihood forbinomial(),poisson(),nbinom2(), andbeta()fits, in addition to the existing univariate and bivariate Gaussian routes. Masked rows keep their complete predictors and row identity but contribute no response density (a plain data guard in the TMB kernel, so the placeholder is never taped). Valid under ignorable (MCAR/MAR) missingness.Missing-predictor
mi()for non-Gaussian responses.missing = miss_control(predictor = "model")with animputemodel now supports one binary (Bernoulli/logit) missing predictor onbinomial(),nbinom2(), andbeta()responses, joining the existing Poisson route. The missing predictor is marginalised by an exact 2-point sum inside the same joint likelihood, with the response density carrying its family dispersion (nbinom2()size = exp(-2*log_sigma);beta()phi = exp(-2*log_sigma)). Point-fit recovery of the mean, dispersion, and predictor-model coefficients is tested at scale for each family.Pluggable response-density leaf. The
mi()quadrature now routes each family’s response density through one shared kernel (drm_response_log_density), so a non-Gaussian response reuses the same integration loop. The Gaussian extraction was a byte-identical refactor (verified by golden capture on the log-likelihood, gradient, and objective), and the per-family leaves replicate their inline densities exactly, including thebeta()boundary nudge and shape floor.
Bug fixes
- Structured
sigmarandom effects forfamily = nbinom2()(sigma ~ phylo()/spatial()/animal()/relmat()) now correctly modify the scale predictor. They were previously applied to the mean predictor (the TMB kernel’smodel_type == 7branch lacked the scale-side dispatch the beta family already had), so asigma ~ phylo(...)fit silently matched a mean-phylo fit while reporting a*_sigmaSD. Point-fit recovery is now verified (tests/testthat/test-nbinom2-sigma-structured-recovery.R); intervals and coverage remain out of scope (recovery-grade).
Coverage validation
- A simulation coverage campaign (400 seeds, n-ladder 50–800; see
docs/dev-log/simulation-artifacts/2026-07-09-nongaussian-unstructured-coverage-pilot/) confirms that unstructured (fixed-effect) non-Gaussian confidence intervals are calibrated. The mean coefficients ofbinomial(),poisson(),beta(), andnbinom2()— including rare-event and low-count stress — and the location-scalesigmacoefficients ofnbinom2()all show finite-rate ≈ 1.0 and near-nominal Wald coverage.beta()location-scale intervals are calibrated for interior proportions; exact 0/1 observations requirezero_one_beta().
Documentation and release-ledger alignment
-
README.md,ROADMAP.md, anddocs/dev-log/known-limitations.mdnow state the exact REML structured-effect boundary shipped across 0.2.0/0.3.0: univariate Gaussian REML accepts phylogenetic mean-side, scale-side, and matched q2 mean-and-scale blocks, plus univariate spatial/animal/relmat scale-side blocks. Arc 1a additionally admits the exact pure-muspatial/animal/relmat intercept and independent one-slope cells over the documented discrete domains; other non-phylogenetic mean-side or mixed mean+scale structured effects, sparse-fixed designs, Gaussian row aggregation, and ordinary direct-SD formulae remain rejected. Bivariate Gaussian REML accepts phylogenetic structured effects in every covariance layout, including the dense q4 block, and rejects spatial/animal/relmat entirely. REML remains rejected outright for every non-Gaussian family. -
ROADMAP.mdcorrects the Q-Seriesinference_readyanchor count from five rows to eight, adding the three q1mu:(Intercept)anchors (phylo, spatial, relmat) that the release ledger already carried but the roadmap text had not listed. Two of the eight rows – the phylo and relmat q2mu1:x/mu2:xslope-SD rows – areinference_readyonly through the bias-correctedconfint()channel; their raw uncorrected Wald intervals fail coverage. No structured row issupported, and non-Gaussian structured rows remain point-recovery evidence only, with no intervals, coverage, orsupportedclaim. -
docs/dev-log/known-limitations.mdrecords thatnbinom2()structuredsigmaterms (phylo/spatial/animal/relmat) now correctly target the scale predictorlog_sigma(the routing fix announced under Bug fixes above); earlier versions mis-targeted the mean predictor. These four rows are recovery-grade only – point-fit recovery is verified, but intervals and coverage remain out of scope.
Inference guidance
-
Historical note, superseded by the cell-specific 0.6.0 guidance above. This release originally described profile likelihood as the headline method for structured covariance targets. The retained evidence does not support that blanket recommendation: q1
muand the exact phylo/relmat slope-only q2mu1:x/mu2:xSD rows use the default location-axis bias-corrected, small-sample-t Wald channel; q1sigmauses raw uncorrected log-SD Wald-z evidence and its profile channel is diagnostic-only atg = 8; Arc 1a REML uses direct structured-SD profiles only over its tested discrete domains. A target appearing inprofile_targets()means that it can be computed, not that its profile interval is validated for reporting.
drmTMB 0.3.0
Large direct-SD models: uncertainty no longer scales with the square of the group count
Reported by Ayumi Mizuno on a 10,440-tip bivariate phylogenetic fit, where TMB::sdreport() exhausted 48 GB of memory.
Breaking (default change). A direct-SD surface (
sd(group, level = "phylogenetic") ~ ., formerlysd_phylo()) previouslyADREPORTed one standard deviation per group, so the jointADREPORTcovariance wasn_group x n_group. UnderREML = TRUEthe fixed effects are integrated into the Laplacerandomblock andvcov()reads exactly that covariance, so a bivariate fit at ten thousand tips needed roughly 14 GB for it alone. Those per-group standard errors are now opt-in viadrm_control(se_group_sd = TRUE). The fitted per-group standard deviations themselves are unchanged and always available. Parameter standard errors,vcov(),summary(), andpdHessnow work under REML at that scale.New
drm_control(se_report_covariance = )anddrm_control(se_skip_delta_method = )pass through to thegetReportCovarianceandskip.delta.methodarguments ofTMB::sdreport(), for further control over the cost of uncertainty on large models.REML = TRUEno longer rejects an explicitly-passedmissing =control when the data contain no missing values. The gate tested the setting rather than whether the missing-data engine actually engages, andmiss_control(response = "include")is an exact no-op on complete-case data. REML combined with a missing-data engine that genuinely engages is still rejected, as that combination remains unvalidated.sigma ~ z + (1 + x | p | id)again reports the specific “labelled residual-scale random-slope covariance blocks are not implemented yet” error rather than a generic shape error. The behaviour (rejection) is unchanged.
Unified sd(..., level = ) scale grammar
-
sd(group, level = "phylogenetic")is the new generic spelling for the phylogenetic direct-SD targets (sd1(...)/sd2(...)for the bivariate endpoints). The legacysd_phylo()/sd_phylo1()/sd_phylo2()spellings are soft-deprecated: they keep working and emit a one-time deprecation warning. Reservedlevelvalues ("spatial","animal","relmat") are parsed but not yet implemented.
More REML coverage (Gaussian location-scale)
Restricted maximum likelihood now covers substantially more of the location-scale family, debiasing scale-side variance components with adequate within-group replication. Every combination admitted under REML is also admitted under ML (docs/dev-log/ml-reml-coverage-2026-07-07.md).
Matched mean-and-scale phylogenetic block (q2) under REML. A univariate
mu+sigmamodel with a correlatedphylo(1 | p | id)block is now admitted; a sample-size ladder shows REML is less biased than ML (N >= 250 to identify, N >= 1000 for the location-scale correlation). This supersedes the earlier small-N“REML degrades the mean” verdict.Block-diagonal bivariate location-scale phylogenetic layout under REML. A phylo mean block and a phylo scale block with distinct labels (
1 | p | idon the means,1 | ps | idon the scales) are admitted; the scale-side random phylo is identifiable with per-group replication (it collapses at one observation per species, where a fixedsd_phylo()scale should be used instead). At this intermediate point the dense block stayed rejected; the later dense-q4 entry below supersedes that state with recovery evidence at adequate information.Ordinary sigma random effects under REML. A residual-scale random intercept
(1 | id), an independent random slope(0 + x | id), the correlated mean-scale block(1 | p | id), and a bivariate labelled scale-side block(1 | s | id)are now admitted; REML debiases the scale-side variance component with adequate within-group replication (at very low replication it can underperform ML).Dense (unstructured) q4 phylogenetic location-scale block under REML. The previous “sign-flip” verdict is superseded: the DGP-to-endpoint mapping is correct (a single nonzero simulated correlation lands on the right pair with the right sign), and the apparent flip was an under-powered fit whose variance component collapsed. With adequate information (roughly
n_tip >= 200and per-species replicationn_each >= 10) the dense q4 converges and recovers, and REML is strictly better than ML there – higher convergence/pdHessrate and variance components debiased toward truth. At one observation per species it still collapses; use the block-diagonal layout or a fixedsd(level = "phylogenetic")scale.Bivariate mean-scale random-effect correlations and
q > 2labelled location covariance blocks under REML. Both are now admitted; REML is consistently less biased than ML on the block standard deviations. ML/REML parity is now complete for every implemented cell (docs/dev-log/ml-reml-coverage-2026-07-07.md).Scale-side spatial / animal / relatedness structured effects under REML.
sigma ~ spatial(...),sigma ~ animal(...), andsigma ~ relmat(...)now fit underREML = TRUE. A recovery + coverage campaign shows REML debiases the scale-side intercept standard deviation in every cell (bias approaching zero as the group count grows) and profile-CI coverage clears the small-sample floor. Mean-side non-phylogenetic structured effects under REML were unvalidated and rejected at the time of this entry. Superseded in 0.6.0: the Arc 1a spatial, animal, andrelmat()unlabelled mean-intercept and independent intercept-plus-one-numeric- slope REML cells are now admitted only over their recorded discrete recovery domains; slope-only, labelled, multiple-slope, q > 1, simultaneous-provider, and adjacent structured cells remain rejected.Degrees of freedom under REML now count the marginalised scale fixed effects. A scale-side REML fit marginalises
beta_sigmaas well asbeta_mu;logLik()’sdf(and thereforeAIC()/BIC()) now counts both, matching the ML parameter count. Fits without a sigma variance component are unchanged.
New: check_drm() diagnostics for weak identification and direct-SD surfaces
phylo_mu_diagnosticsno longer reports a falseerrorfor a fittedsd(group, level = "phylogenetic") ~ .surface (which has no scalar phylogenetic standard deviation). It now summarises the fitted per-group SD surface and errors only on genuinely non-finite or non-positive fitted standard deviations.New
standard_errors_inflatedcheck flags a finite-but-inflated Wald standard error on a converged, positive-definite-Hessian fit – the signature of a weakly identified, near-flat direction such as a boundary correlation. The bivariate phylogenetic mean-mean boundary warning now names the same symptom in words. A cleanpdHessis necessary, not sufficient.New “Choosing between maximum likelihood and REML” guidance in the Improving convergence article: ML is the default; REML’s
p / ncorrection to variance components matters mainly at small group counts, and it leaves the mean coefficients essentially unchanged.
New: correlated residual-scale random slopes
sigma ~ x + (1 + x | id)– a correlated residual-scale intercept-slope block – is now implemented (and the multi-slope(1 + x1 + x2 | id)generalisation). Previously only independent residual-scale slopes ((0 + x | id)) were supported. The univariate TMB likelihood now applies the same-dpar correlation conditioning to thesigmarandom effects, mirroring themuside. Recovery of the intercept SD, slope SD, and their correlation is validated against known truth.Consequently the ordinary two-level DHGLM with correlated random slopes on BOTH the location and the scale –
y ~ x + (1 + x | id)withsigma ~ x + (1 + x | id)– now fits, under ML and REML. The remaining piece of the full q12 is the labelled cross-formulamu-sigmaslope block (the mean-scale slope cross-correlation), which is still planned.
drmTMB 0.2.0
REML for Gaussian and bivariate-Gaussian location-scale models
Restricted maximum likelihood (REML = TRUE) now covers more of the phylogenetic location-scale model family, debiasing the variance components and giving better-conditioned, honest scale-side standard errors. Validated by exact restricted-likelihood references and known-truth recovery ladders (docs/design/221-native-reml-finish.md); the native REML test suite is green.
Bivariate Gaussian REML with phylogenetic / random location effects.
drmTMB(..., REML = TRUE)now fitsbiv_gaussian()models whose means carry correlatedphylo()(or ordinary) random effects (the “correlate the means” model), matching an exact bivariate restricted-likelihood reference. A sample-size recovery ladder shows REML is less downward-biased than ML on the variance components at every sample size, and its standard errors track ML’s. At the time of this 0.2.0 entry, scale-side random effects, matched mean-and-scale phylogenetic effects, andq > 2labelled covariance blocks remained rejected. Later 0.3.0/current entries supersede that boundary with row-specific point-fit or recovery evidence.Phylogenetic direct-SD scale (
sd_phylo(...) ~ predictors) under REML. The heteroscedastic phylogenetic-variance model – a predictor (e.g. climate) on the phylogenetic SD – is now admitted under REML for univariate and bivariate Gaussian models, matching an exact restricted-likelihood reference. This is the scale side of the corrected ecogeographic location-scale model.Correct REML standard errors for direct-SD coefficients.
vcov()andsummary()previously returnedNAstandard errors for thesd_phylocoefficients under REML (they are absent from the sdreport ADREPORT joint covariance); they now fall back to the fixed-parameter covariance and report finite Wald standard errors.
Native phylogenetic location-scale fits with debiased variance components reduce the need for an external Bayesian comparator (e.g. MCMCglmm) for this workflow.
drmTMB 0.1.4
Current development claims in this NEWS section follow the finish-plan claim registry in docs/design/168-r-julia-finish-capability-matrix.md; fitted, planned, unsupported, and release-gate language should not be read more broadly than that matrix.
drmTMB()now fits three non-count family structuredmuone-slope cells as native point-fit/extractor recovery-only routes:Gamma()withrelmat(1 + x | id, K = K),student()withspatial(1 + x | id, coords = coords), andbeta()withanimal(1 + x | id, pedigree = ped). Each extends the existing structured intercept gate to an unlabelled intercept-plus-one-slope term with no compiled-code change. On a crossedn_lvl in {10,20,30}x 30-seed ladder, a null-slope separability control, and a non-identity AR(1) relatedness check, both variance components recover with RMSE falling as levels increase (Gamma and beta 90/90 converged with positive-definite Hessian; Student-t 83/90, so usen_levels >= 20). This is recovery-only: labelled or multiple structured slopes, scale/shape/zero-inflation structured slopes, other families, intervals, coverage,inference_ready,supported, REML, AI-REML, and bridge support remain planned.Simultaneous two-provider structured count
muis now admitted at point-fit/recovery for NB2:nbinom2()withspatial(1 | site, coords = coords) + relmat(1 | id, Q = Q)on a crossedsite x iddesign now builds and surfaces both structured fields (ranef()showsspatial_muandrelmat_mu; both SDs are directlog_sd_phylo/log_sd_phylo2profile targets). On the crossed ladder both fixed-covariance variance components recover with a positive-definite Hessian, and a non-crossed control shows the separability requirement (site and id must vary independently). This is recovery evidence only — it does not authorize interval reliability, coverage,inference_ready, STAN cross-check, REML, AI-REML, bridge parity, orsupported. Joint identifiability rests on the crossed design.Structured q12 two-slope all-four covariance is now admitted at point-fit/recovery for
phylo(),spatial(),animal(), andrelmat():(1 + x + z | p | id)onmu1/mu2/sigma1/sigma2builds a twelve-endpoint (66-correlation) among-trait covariance that recovers a known covariance at adequate sample size.pdHess=FALSEis expected here (the 66-correlation block is weakly identified) and is not failure: the twelve SDs are direct profile targets and the 66 correlations route through profile/bootstrap (ELR excluded). This is recovery evidence only — it does not authorize interval reliability, coverage, STAN cross-check, REML, AI-REML, bridge parity, orsupported. With this admission every Gaussian structured-random-effect row now holds a v1.0 basic-working-or-better row-accounting role; the remaining rows outside that practical surface are non-Gaussian.Structured q6 two-slope location covariance is now admitted at point-fit/recovery for
phylo(),spatial(),animal(), andrelmat():bf(mu1 = y1 ~ x + z + phylo(1 + x + z | p | id, tree = tree), mu2 = ..., sigma1 = ~1, sigma2 = ~1, rho12 = ~1)builds a six-endpoint (15-correlation) among-trait covariance that recovers a known covariance with a positive-definite Hessian at adequate sample size. This is recovery evidence only: the six SDs are direct profile targets and the fifteen correlations are derived (no Wald interval), so it does not authorize interval reliability, coverage, STAN cross-check, REML, AI-REML, bridge parity, the structured q8 rows, orsupportedwording.The Q-Series v1.0 release status is now generated from the 104-row support-cell board and recorded in
docs/dev-log/release-audits/q-series-v1-release-status.md. It separates implemented/basic-working Gaussian structured-effect rows, 27 non-Gaussian recovery rows, and 10 non-Gaussian diagnostic-only rows from post-v1.0inference_readyandsupportedvalidation. This is release-planning evidence only; it does not authorize coverage, q4/q8 promotion, broad bridge support, REML, AI-REML, or public-support wording.The Q-Series v1.0 practical surface now includes ten row-specific diagnostic-only gates outside the ordinary
mulanes: Student-t intercept-onlymu ~ spatial(1 | id, coords = coords), Student-tnu ~ phylo(1 | id, tree = tree), cumulative-logit ordinalmu ~ phylo(1 | id, tree = tree), truncated-NB2 hurdlehu ~ relmat(1 | id, Q = Q), zero-inflated Poissonzi ~ spatial(1 | id, coords = coords), zero-inflated Poisson fixed-zimu ~ spatial(1 | id, coords = coords), zero-inflated NB2 fixed-zimu ~ spatial(1 | id, coords = coords), Poisson slope-onlymu ~ spatial(0 + x | site, coords = coords), Poisson labelled-scalarmu ~ spatial(1 | p | site, coords = coords), and Poissonmu ~ spatial(1 | site, coords = coords) + (1 | id). These rows establish fit/extractor feasibility but not point-estimate recovery and are not interval, coverage,inference_ready,supported, bridge, REML, AI-REML, broad shape/inflation/ordinal/structured non-Gaussian support evidence, or neighbouring-row evidence.truncated_nbinom2()hurdle models now fit the row-specific Q-Series v1.0hu ~ relmat(1 | id, Q = Q)local gate. The fitted relatedness-field SD for the hurdle probability is exposed throughsdpars$huandranef("relmat_hu"). This is local fit-only/extractor evidence; hurdle slopes, labelled covariance, broader hurdle structured effects, intervals, coverage,inference_ready,supported, REML, AI-REML, and bridge support remain closed.cumulative_logit()now fits the row-specific Q-Series v1.0 ordinal phylogeneticmuintercept gate, for formulas such asbf(score ~ x + phylo(1 | species, tree = tree)). The fitted phylogenetic ordinal location SD is exposed throughsdpars$mu,ranef("phylo_mu"), and a directprofile_targets()row. This is local fit-only/extractor evidence; ordinal slopes, scale/discrimination formulas, bivariate ordinal models, intervals, coverage,inference_ready, andsupportedstatus remain planned.nbinom2()now fits the row-specific Q-Series v1.0 zero-inflated NB2 fixed-zispatialmuintercept gate, for formulas such asbf(count ~ x + spatial(1 | site, coords = coords), sigma ~ 1, zi ~ 1). The fitted spatialmuSD is exposed throughsdpars$mu,ranef("spatial_mu"), and a directprofile_targets()row. This is local fit-only/extractor evidence; zero-inflated NB2 structured slopes, labels, simultaneous providers, structuredzi, structuredsigma, intervals, coverage,inference_ready,supported, REML, AI-REML, and bridge support remain closed.confint()now applies the small-sample t(g - 1) width plus the simulation-calibratedlog(g/(g - 1))centre shift by default for location-axis structured random-effect SD targets. This moves only the phylo and relmat bivariate q2mu1:x/mu2:xslope SD cells toinference_readyfor interval and coverage status;supportedremains withheld because the engine grids still measure right-tail miss asymmetry and g-dependence. Spatial q2, animal q2, q4/q8, count, and non-Gaussian structured rows remain separate future arcs.The exact Gaussian q1 sigma one-slope
phylo(),animal(), andrelmat()rows are nowinference_readyunder the raw uncorrected log-SD Wald-z interval channel. The Nibi top-up, banked SR475 slope grid, and local animal SR1000 reconciliation show 100% fit/pdHess pass rates, Wald finite rates at or above 0.953, and Wald MCSE at or below 0.01; the caveat is that one-sided misses are asymmetric and sigma slope SDs over-cover, so this is notsupported. Profile intervals remain diagnostic-only at deployment g=8 for low-finite sigma targets, and the location-axis bias+t correction does not apply to sigma.drmTMB()now fits ordinary Poisson and NB2 structuredmuone-slope count cells with unlabelledphylo(1 + x | ...), fixed-covariancespatial(1 + x | ...),animal(1 + x | ...), andrelmat(1 + x | ...)terms. These are native TMB ML/Laplace point-fit and extractor cells for non-zero-inflated count means only. Exact q1 NB2 structuredsigmaintercept-plus-one-slope routes for those four providers are separately fitted at recovery grade; pure or multiple structured count slopes, labelled count covariance, zero-inflated structured effects beyond the exact Poisson spatialzi, Poisson fixed-zispatialmu, and NB2 fixed-zispatialmulocal-fit gates, richer or labelled NB2 structuredsigma, q2/q4 count covariance, bridge support, REML, AI-REML, intervals, coverage, and public-support promotion remain planned or unsupported.biv_gaussian()now fits the first phylogenetic all-four one-slope structured block when the same labelledphylo(1 + x | p | species, tree = tree)term appears inmu1,mu2,sigma1, andsigma2. The fitted block exposes eight endpoint SDs and 28 derived latent phylogenetic correlations throughsdpars$mu,corpars$phylo,corpairs(level = "phylogenetic"),summary()$covariance,profile_targets(), andstructured_effects(). This is native ML point-fit/extractor evidence plus deterministic same-target fixture parity for the exact shared-label phylo cell only; block-diagonal layouts, broad bridge support beyond the fixture, intervals, coverage, REML, AI-REML, and public-support promotion remain planned.biv_gaussian()now also fits the first fixed-covariance spatial all-four one-slope structured block when the same labelledspatial(1 + x | p | site, coords = coords)term appears inmu1,mu2,sigma1, andsigma2. The fitted block exposes the same eight endpoint SDs and 28 derived latent spatial correlations through the standard covariance extractors. This is native ML point-fit/extractor evidence plus deterministic same-target fixture parity for the exact fixed-covariance spatial cell only; range-estimating spatial support, block-diagonal layouts, broad bridge support beyond the fixture, intervals, coverage, REML, AI-REML, and public-support promotion remain planned.biv_gaussian()now fits the corresponding exact A-matrix animal and K/Q lower-level relatedness all-four one-slope blocks when the same labelledanimal(1 + x | p | id, A = A)orrelmat(1 + x | p | id, K/Q = ...)term appears inmu1,mu2,sigma1, andsigma2. These cells expose eight endpoint SDs and 28 derived latent animal or relatedness correlations through the standard covariance extractors. This is native ML point-fit/extractor evidence plus deterministic same-target fixture parity for the exact A-matrix animal and K-matrix relmat cells only; pedigree/Ainv bridge marshalling, relmat Q bridge marshalling, block-diagonal layouts, broad bridge support beyond the fixture, intervals, coverage, REML, AI-REML, and public-support promotion remain planned.The residual
rho12correlation now uses the same0.999999(six-nines)tanhguard as every other latent correlation in the package, instead of an inconsistent0.99999999(eight-nines) bound (flagged in review). The guard is far from any realistic correlation, so fittedrho12values are unchanged to about seven decimal places; this is a numerical-consistency fix, not a behaviour change for interior fits.drm_phylo_penalty_sweep()runs a penalized (MAP) phylogenetic fit across a range ofcor_sdcorrelation-penalty values and returns a tidy sensitivity summary (convergence,pdHess,logLikpercor_sd) plus the fitted objects for extracting the couplings. This turns the mandatory prior-sensitivity sweep – the check of whether a weakly identified coupling is data-informed (stable acrosscor_sd) or prior-shaped (trackscor_sd) – into a single call; there is no universalcor_sd. (drm_phylo_penalty()and the new sweep are now both in the pkgdown reference.)check_drm()now reports alogsigma_clamp_activerow that flags when thelog(sigma)clamp is active at the optimum – the diagnostic-surface complement to the fit-time clamp-active warning – so a clamp-bound fit is visible in the standard diagnostic table (anotewhen the TMB object was dropped, anokotherwise).check_drm()now warns when q2 random-effect covariance correlations are close to+/-1, including univariatemu/sigmacovariance and bivariate q2mu/mu,sigma/sigma, and same-responsemu/sigmacovariance rows. The diagnostic prints the fittedrho_absandrho_boundaryso a converged, positive-Hessian fit at the correlation guard is visible rather than silently labelledok.check_drm()now reports fitted-boundary diagnostics for bivariate coordinate-spatial,animal(), andrelmat()q2 location covariance rows (biv_spatial_q2_covariance,biv_animal_q2_covariance, andbiv_relmat_q2_covariance). This changes diagnostic visibility only; it does not change fitting behaviour or promote structured q2 recovery, interval, or power claims.biv_gaussian()now fits the first structured slope-only q=2mu1/mu2covariance cells forphylo(0 + x | p | species, tree = tree), fixed-covariancespatial(0 + x | p | site, coords = coords),animal(0 + x | p | id, A/Ainv = ...), andrelmat(0 + x | p | id, K/Q = ...). The fitted SDs andcor(mu1:x,mu2:x | p | group)row are coefficient-aware insdpars$mu,corpars,corpairs(),summary()$covariance,profile_targets(), andstructured_effects(). This is native point-fit/extractor evidence plus deterministic same-target fixture parity for the exact slope-only q2 cells; it does not by itself promote separate intercept-plus-slope structured q4/q8 covariance cells, broad bridge support, interval reliability, coverage, REML, or AI-REML.drmTMB()now rejects combiningREML = TRUEwithpenalty =(a penalized / MAP fit): a restricted-likelihood estimator and a maximum-a-posteriori estimator are different estimators of the variance components, so the combination is undefined.The Student-t
nudocumentation now states explicitly that thenu > 2(finite-variance) bound, required by thesigma = SDcontract, means the family cannot represent the very heavy tails ofnu <= 2(e.g. Cauchy);check_drm()warns asnuapproaches the boundary.drmTMB(..., REML = TRUE)now fits bivariate Gaussian fixed-effect location models (mu1/mu2), marginalising both mean blocks (beta_mu1,beta_mu2) for an unbiased residual covariance. Validated against an exact restricted-likelihood reference (the OLS-residual covariance with then - pcorrection):sigma1,sigma2,rho12, and both mean-coefficient blocks match, and the degrees of freedom count both marginalised blocks. At the time of this entry, bivariate random-effect and structured (phylo) means under REML were a later slice and rejected; later 0.2.0/0.3.0 entries supersede that boundary with row-specific q2/q4 evidence.REML now supports a fixed-effect heteroscedastic residual (
sigma ~ predictors), not just an intercept-onlysigma. REML restricts the likelihood for the mean fixed effects regardless of the scale model, so a Gaussian with residual varianceV = diag(sigma_i^2) + random-effect covariancehas an exact restricted likelihood; drmTMB’s REML estimates match a hand-computed restricted-likelihood reference (random-effect SD, thesigmacoefficients, and the mean coefficients), and the degrees of freedom count the marginalised mean fixed effects. At the time of this entry, scale-side random effects under REML remained rejected; later 0.3.0/current rows supersede that boundary with exact point-fit or recovery admissions.drmTMB(..., REML = TRUE)now fits mean-side phylogenetic location models – aphylo()term onmuwith an intercept-onlysigma– extending REML beyond the ordinary-random-effect slice. REML restricts the likelihood for the mean fixed effects (TMB marginalisesbeta_muthrough its exact Gaussian Laplace step), giving a less downward-biased phylogenetic variance component. Estimates match a hand-computed restricted Gaussian likelihood (phylogenetic SD, residualsigma, and the mean coefficients). At the time of this historical entry, scale-side structured effects and non-phylogenetic structured effects (spatial, animal, relatedness) under REML remained rejected. Superseded in 0.6.0: the later scale-side work and Arc 1a admit only the exact tested cells and discrete domains named in the current capability guide; neighbouring slopes, q > 1 blocks, simultaneous providers, and untested cells remain rejected.drm_control(fallback_optimizer = )adds an opt-in fallback optimizer (an [stats::optim()] method such as"BFGS") that is tried as a final attempt when nonlminb()preset converges. A different algorithm sometimes succeeds on a numerically awkward but identified problem. It is off by default (NULL), so the default fit uses only thenlminb()preset ladder; when enabled, the fallback attempt is recorded infit$optimizer_attemptslike any preset.drm_control(multi_start = K)enables multi-start fitting: each optimizer preset is run fromKstarting points – the principled start plusK - 1reproducibly perturbed starts – and the lowest-objective result is kept. This helps weakly identified models escape poor local optima. It is opt-in:multi_start = 1(the default) is the single-start fit and is unchanged, and the perturbations use a fixed internal seed with the caller’s random stream saved and restored, so fits stay reproducible.The optimizer now escalates its preset ladder (
default->careful->robust) when a preset returns a non-converged result, not only when it throws an error. PreviouslydrmTMB()accepted the first preset that did not error – even a false convergence (convergence != 0) or a non-finite objective – so thecarefulandrobustpresets were effectively unreachable for the very cases they exist for. Now a non-converged attempt is recorded and the next preset is tried; the first cleanly-converged attempt is returned, or the best (lowest-objective) attempt if none converge. A clean first attempt is unchanged (no escalation, no warning). The full ladder is recorded infit$optimizer_attempts, and the fit-time convergence warning now points there instead of suggesting a manualrobustrefit (the ladder is tried automatically).The Gaussian
sigma-slope starting values are more robust for strong scale-heterogeneity models. The start heuristic previously discarded all scale slopes whenever its log-absolute-residual regression looked too large, handing a legitimately steepsigma ~ xmodel a flat intercept-only starting point; it now shrinks an over-large slope start toward zero (direction preserved, magnitude bounded) instead. This only changes the optimizer’s starting point, not the objective, so converged fits are unchanged; it gives the optimizer a better start on hard scale models. Moderate and intercept-onlysigmastarts are unaffected.drmTMB()now warns at fit time if the optimized objective is not finite (NaN/Inf), instead of storing a non-finite log-likelihood and returning a broken fit silently. TMB normally returns a finite objective, so this is a defensive guard (classdrmTMB_nonfinite_objective_warning); when it fires, the fit never reached a usable optimum and its estimates and standard errors are meaningless.The
log(sigma)overflow soft-clamp now guards every scale-bearing family, not just Gaussian. Student, skew-normal, lognormal, gamma, Tweedie, beta, zero-one-beta, beta-binomial, and the negative-binomial family (NB2, truncated, hurdle, zero-inflated), plus the Gaussian row-aggregation path, all routelog(sigma)through the sameuse_logsigma_clamp-gated soft-clamp before exponentiation. The clamp is exactly the identity inside the band, so every in-band fit is bit-identical to the unclamped fit (verified per family); the only change is that a runaway scale becomes a finite, clamp-flagged fit instead of an overflow toNaN. Previously this guard existed only for the Gaussian likelihood, leaving the other families’ dispersion parameters unprotected. The same configurable band (drm_control(logsigma_clamp = )) and the clamp-active warning apply across families.drmTMB()now warns at fit time when thelog(sigma)soft-clamp is active at the optimum – the fittedlog(sigma)reached or passed the identity band, so the clamp bent the scale. Such a fit can converge artificially: the saturated tail is flat, so the gradient vanishes and the optimizer may report convergence even though the scale ran to the bound, leaving estimates and standard errors near the clamp unreliable. The warning (classdrmTMB_clamp_active_warning) names the value reached and the band and recommends rescaling the response, widening the band withdrm_control(logsigma_clamp = ), adding within-group replication, or a penalized/MAP fit. It covers every clamp-guarded scale family (the detector reads the mainlog_sigma/log_sigma1/log_sigma2scales, ignoring the unclamped missing-predictor imputation scales) and is filtered by the simulation harness, which tracks scale state separately. This closes the case where a clamp-bound fit returned looking fine under a falseconvergence = 0.confint(method = "wald")now flags a Wald interval that sits at a variance-component or correlation boundary instead of presenting it as an ordinary interval. When a random-effect or structured standard deviation is withinsd_boundaryof zero, or a correlation is withinrho_boundaryof+/-1, the row’sconf.statusbecomes"wald_at_boundary"and a warning (classdrmTMB_wald_boundary_warning) points tomethod = "profile", because the symmetric Wald interval undercovers under boundary (chi-square-mixture) inference. The interval is still returned – a boundary is a warning, not an auto-discard – and a residual or distributional scale near zero is regular and is not flagged. The thresholds are exposed asconfint(..., sd_boundary = 1e-4, rho_boundary = 0.98), matching thecheck_drm()defaults.AIC()andBIC()now havedrmTMBmethods that warn when the criterion is not a valid comparison. A REML fit warns that its restricted likelihood is comparable only across models with identical fixed effects (never ML versus REML, or different mean structures); a penalized (MAP) fit warns that the criterion is not standard, becauselogLik()returns the unpenalized data log-likelihood and a penalized parameter does not contribute a full degree of freedom. Previously these calls dispatched tostats::AIC.default, which reads the log-likelihood value and ignores the estimator, silently returning a meaningless number. For a plain maximum-likelihood fit the value is unchanged and no warning is emitted; the warnings carry condition classesdrmTMB_ic_reml_warninganddrmTMB_ic_map_warning.drmTMB()now warns at fit time when the optimizer reports non-convergence, instead of returning a non-converged fit that looks fine. The warning surfaces thenlminbcode and message (for example “false convergence (8)”), points tocheck_drm(), and suggests therobustoptimizer preset;print()annotates a non-zero convergence code with “(not converged; see check_drm())” rather than showing a bare integer next to a clean-looking coefficient table. The warning carries condition classdrmTMB_convergence_warningso callers that do their own convergence bookkeeping (the simulation harness, or user code) can muffle just this signal while still seeing every other warning. This does not change any estimate; it makes a weak fit visible at the point of fitting.drm_control()now exposes the Gaussianlog(sigma)overflow guard as a configurable knob:logsigma_clamp = c(lo, hi)sets the identity-in-band soft-clamp band (defaultc(-12, 12), unchanged) andlogsigma_clamp_marginits saturation margin (default3, saturating to[-15, 15]).logsigma_clamp = NULLdisables the guard. Widen the band for legitimately huge-variance unstandardized responses, or disable it to inspect the raw overflow on a near-degenerate per-group scale model. The default is bit-identical to the previous fixed guard; the band is a numerical guard only and does not change identifiability (#570).drmTMB()now accepts an optionalpenalty = drm_phylo_penalty(sd_u, sd_alpha, cor_sd)argument that switches a phylogenetic fit to a penalized / maximum-a-posteriori (MAP) estimator: a penalised-complexity prior on each phylogenetic SD and an optional mean-zero normal on the phylogenetic correlation. This regularizes a weakly-identified phylogenetic variance or correlation (for example a scale-side phylogenetic field at about one observation per tip, or a coupled location-scale correlation pinned near+/-1) so the fit returns a finite, positive-definite estimate instead of stalling at a boundary. Plain maximum likelihood stays the default and bit-identical whenpenalty = NULL; a penalized fit is labelledestimator = "MAP",logLik()returns the unpenalized data log-likelihood (the penalty is stored infit$phylo_penalty), andcheck_drm()adds apenalized_mapnote. The penalty does not manufacture identifiability:cor_sdhas no universal value and must be chosen by a prior-sensitivity sweep, likelihood-ratio tests or AIC across penalized fits are not standard, and within-group replication remains the clean route to a fully identified coupled model. A known-truth coupled-q4 recovery simulation backs this – the penalty rescues the model to a positive-definite fit (which also restores Wald, profile, and bootstrap intervals) and recovers strong correlations near the right prior while over-shrinking weak ones. TheImproving convergencearticle gains a penalized/MAP section, anddocs/design/174-controls-and-convergence.mdrecords the control catalog, the generalization-via-controls principle, and the interval-method guidance (#570).drmTMB()now fits the first primary Bernoulli/binomial response slice with native TMBfamily = stats::binomial(link = "logit"). Supported responses are explicit 0/1 event indicators andcbind(successes, failures)count responses; the fixed-effect likelihood includes the binomial normalizing constant sologLik(), AIC, and BIC matchstats::glm()on overlapping logit models. Usebeta_binomial()when successes out of known trials need extra-binomial variation throughsigma. Non-logit links, factor-response ordering, proportions plusweights,weights = trials,sigma, random effects, structured effects, bivariate or mixed responses, and non-phylogeneticengine = "julia"binomial fits remain unsupported for this first slice (#569).confint(method = "bootstrap")now attaches a lightweight"bootstrap.diagnostics"attribute to returned bootstrap interval tables, with one row per bootstrap refit and target. The diagnostics record refit convergence, target availability, finite draw use, seed/backend/worker provenance, and refit-control flags while leaving the visible interval table at the usual target grain. The Ayumi q4 developer harness writes the same ledger tobootstrap-diagnostics.csv; this is troubleshooting evidence for failed or partial bootstrap runs, not a coverage or 10k-workflow claim (#555).confint()now warns when a default Wald interval is requested for the skew-normal slantnu, recommendingmethod = "profile"(ormethod = "bootstrap") instead. An ADEMP pilot found the Wald slant interval over-rejects nearnu = 0(24-40% false positives versus the nominal 5%) because the Azzalini information is near-singular atalpha = 0. A later fixed-effect guard grid kept tail-floor exposure and fixed-gradient diagnostics visible rather than treating finite likelihoods as interval evidence. The warning is scoped to skew-normalnuonly; Wald intervals for other families, including Student-tnu(tail shape) and Tweedienu(power), are unchanged.confint(method = "profile")now acceptsprofile_endpoint_max_evalfor direct scalar endpoint profiles, giving long variance-component or correlation diagnostics an explicit endpoint-evaluation budget. When the budget is reached,confint()returns an endpointprofile_failedrow with missing endpoints instead of silently falling through to a full-profile fallback. The Ayumi q4 developer harness can pass the same budget throughDRMTMB_AYUMI_Q4_PROFILE_ENDPOINT_MAX_EVALand now separates returned-fit status from convergence/Hessian inference status (#555).confint(method = "profile")now returns an explicit row-levelconf.status = "profile_failed"with missing endpoints when a direct numeric profile target fails during endpoint ortmbprofileevaluation, instead of aborting the whole interval request or labelling a non-finite interval as a successful profile. Focused regression tests keep bivariate q=4 phylogenetic location-scale sigma SDs visible as direct native-TMB ML profile targets, check weak-Hessian profile status for those sigma targets, and leave q4 phylogenetic correlations derived and not profile-ready (#551).Phase 18 now has a standalone fixed-effect skew-normal artifact lane (
skew_normal_fixed_effect). The new DGP, summariser, smoke runner, grid writer, manual Actions task, and focused tests save aggregate, replicate-level, manifest, failure-ledger, fixed-effect Wald interval, optional profile, optional parametric-bootstrap, interval-evidence, interval-diagnostic, and interval-failure artifacts forbf(y ~ x, sigma ~ z, nu ~ w), family = skew_normal(). The default grid uses moderate shape-recovery sample sizes (n = 720and1440) because stochastic skewness recovery is sample-size dependent; this is repeatable smoke/grid infrastructure, not a formal 500- or 1000-replicate operating-characteristic result.skew_normal()now fits the first univariate fixed-effect skew-normal location-scale-shape route with publicmu = E[y], publicsigma = SD[y], and residual slantnuon the identity scale. The TMB likelihood transforms internally to native skew-normalxi,omega, andalpha = nu; focused tests cover density normalization, native-density comparison, Gaussian normal limit, positive and negative skew recovery, predictor-dependentnu, Gaussian false-positive behaviour, simulation, fixed-effect interval visibility, and malformed-neighbour rejection. Random effects,sd(group), known sampling covariance, structured effects, bivariate skew-normal models, residualrho12, latentskew(id), andskewaliases remain planned.drmTMB()now forwardsREML = TRUEthrough the experimentalengine = "julia"bridge for one route-specific bivariate q = 4 Gaussian phylogenetic location-scale DRM.jl cell when the installed DRM.jl build supports that Patterson-Thompson REML diagnostic. The bridge article now shows the glmmTMB-style top-levelREML = TRUE/FALSEswitch, the labelled four-axisphylo()syntax, and the current missing-response boundary. This bridge evidence does not establish native-TMB q4 REML; the native route has separate recovery evidence. It also does not establish HSquared AI-REML, non-Gaussian REML, broad R-to-Julia bridge support, public optimizer controls, q4 interval reliability, or q4 interval coverage; weights, missing-predictor imputation, non-default control, most non-Gaussian families, unsupported phylogenetic neighbours,corpair()entries, simulation, and persistent Julia handles remain native-TMB or future bridge work (#544).drmTMB()now recordsestimator,REML,requested_REML, andeffective_REMLon experimental Julia-engine fits, so downstream diagnostics can distinguish requested REML from the estimator actually fitted. Unsupported Julia REML requests now warn with the exact unsupported cell, fall back to ML, and state that nativeengine = "tmb"is only an REML fallback for its documented univariate Gaussian REML slice rather than for every rejected Julia cell (#555).biv_gaussian()now fits the first ordinary q8 all-endpoint location-scale slope covariance slice: matching labelled(1 + x | p | id)terms inmu1,mu2,sigma1, andsigma2. The fitted block has eight endpoint SDs and 28 latent group-level correlations across response-specific location intercepts, location slopes, scale intercepts, and scale slopes. The SDs appear insdpars$muandsdpars$sigma; the correlations appear incorpars$re_cov,corpairs(level = "group", block = "p"),summary()$covariance,profile_targets(), andcheck_drm(). The Phase 18 registry now exposes opt-inbiv_gaussian_q8_endpointandbiv_gaussian_q8_endpoint_recoveryActions tasks; the recovery lane reports bias, RMSE, MCSE, and explicit interval unavailability. A 2026-06-07 local two-cell audit ran 20 replicates per cell and kept q8 athold_diagnostic: 38/40 manifests completed, model-convergence rates were 0.263 and 0.158, positive-Hessian rates were 0 in both cells, two replicates failed with non-positive leading minors, and no Wald intervals were usable. Q8 still has no coverage result, power claim, predictor-dependentcorpair()regression, randomrho12, structured q8 sibling, or non-Gaussian q8 route.biv_gaussian()now fits the first same-response location-scale slope covariance slice: matching labelled(0 + x | p | id)terms inmu1/sigma1ormu2/sigma2. The location-slope SD appears insdpars$mu, the scale-slope SD appears insdpars$sigma, and the group-levelcor(mu1:x,sigma1:x | p | id)orcor(mu2:x,sigma2:x | p | id)row appears incorpars$mu_sigma,corpairs(class = "mean-scale-slope"),summary()$parameters,profile_targets(), andcheck_drm(). Cross-response pairs, mismatched coefficients, and univariate labelledsigmaslopes remain closed; the all-endpoint q8 route is a separate source-tested slice.The Phase 18 same-response bivariate Gaussian q=2
mu/sigmaslope covariance lane now has smoke and multi-replicate recovery artifacts (biv_gaussian_mu_sigma_slopeandbiv_gaussian_mu_sigma_slope_recovery). The lane reuses the fitted matching(0 + x | p | id)terms inmu1andsigma1, reports 12 estimands, emits bias, RMSE, empirical SE, MCSE, and fixed-effect Wald coverage tables, and keeps the two slope SDs plus the derivedmu_sigmacorrelation out of Wald interval claims. A local 2026-06-06 formal audit ran 500 replicates in each of the two default recovery cells and produced 1,000okmanifest rows, but convergence/positive-Hessian rates were 0.856 and 0.884 and all-replicate fixed-effect Wald coverage was 0.796-0.850. A follow-up hardening audit regenerated and robust-refit the 130 weak replicates; none were rescued, all retained false-convergence andpdHess = FALSE, and estimates were unchanged. Among interval-available converged fits, fixed-effect Wald coverage was 0.930-0.972, and endpoint profiles succeeded on two clean representative fits forrho12, both slope SDs, andcor(mu1:x,sigma1:x | p | id). This is diagnostic evidence and profile feasibility, not power-grid support.The ordinary NB2
murandom-effect surface now has a standalone recovery artifact lane (nbinom2_mu_re_recovery), parallel to the Poisson one: it runs the already-recovery-capable smoke summary at recovery-scalen_repand emits isolated bias/RMSE/MCSE, Wald-coverage, and profile-coverage CSVs through an opt-in Actions task, as aready_gridrandom_slopesregistry row. (The truncated-NB2murandom-intercept surface already had an equivalent standalone coverage-emitting lane through its existingtruncated_nbinom2_mu_random_intercepttask, so it needed no new writer.)The ordinary Poisson
murandom-effect surface now has a standalone, dispatchable recovery artifact lane (poisson_mu_re_recovery) — the first non-Gaussian recovery artifact lane. The recovery contract (bias, RMSE, MCSE, Wald coverage for the fixed mean coefficients, and profile coverage for the random-effect SD) was already computed by the smoke summary; the new opt-in lane runs it at recovery-scalen_repand emits isolated CSV artifacts instead of only riding the combined first-wave summary. It is aready_gridrandom_slopesregistry row.The Phase 18 bivariate Gaussian slope-only
mu1/mu2covariance lane now has a multi-replicate recovery companion (biv_gaussian_mu_slope_recovery). It reuses the smoke DGP, fit, and runner for the matching(0 + x | p | id)block and reports bias, RMSE, empirical SE, Monte Carlo standard error, and Wald interval coverage across its 10 estimands. Wald coverage is reported only for the fixedmu1/mu2endpoints; the two slope random-effect SDs and the derived slope-slope correlation stayderived_interval_unavailable. The lane is aready_gridrandom_slopesregistry row with its own opt-in Actions task and grid writer.The Phase 18 bivariate Gaussian q=6
mu1/mu2location covariance lane now has a multi-replicate recovery companion (biv_gaussian_q6_location_recovery). It reuses the smoke DGP, fit, and runner for the matching(1 + x + z | p | id)block in both location formulas and reports bias, RMSE, empirical SE, Monte Carlo standard error, and Wald interval coverage across its 30 estimands. Wald coverage is reported only for the fixedmu1/mu2endpoints; the six location random-effect SDs and the fifteen derived location-location correlations stayderived_interval_unavailable. The lane is aready_gridrandom_slopesregistry row with its own opt-in Actions task and grid writer.The Phase 18 bivariate Gaussian q=2 residual-scale intercept covariance lane now has a multi-replicate recovery companion (
biv_gaussian_q2_scale_recovery). It reuses the smoke DGP, fit, and runner, runs at recovery-scalen_rep, and reports bias, RMSE, empirical SE, Monte Carlo standard error, and Wald interval coverage. Wald coverage is reported only for the fixedmu1/mu2endpoints that carry a standard error; the random-effect scale SDs and the derived scale-scale correlation stayderived_interval_unavailable. The lane is registered as aready_gridcorrelation_blocksrow with its own opt-in Actions task and grid writer, and its design sheet isdocs/design/156-phase-18-bivariate-scale-q2-recovery-ademp.md.The Phase 18 bivariate Gaussian q=2 residual-scale slope covariance lane now fits matching
sigma1 = ~ x + (0 + x | p | id)andsigma2 = ~ x + (0 + x | p | id)blocks underbiv_gaussian(). The two scale-slope SDs appear insdpars$sigma, the group-levelcor(sigma1:x,sigma2:x | p | id)row appears incorpars$sigma,corpairs(class = "scale-scale"),summary()$parameters,profile_targets(), andcheck_drm(), and residualrho12remains a separate row-level correlation. Thebiv_gaussian_q2_scale_slopeandbiv_gaussian_q2_scale_slope_recoveryPhase 18 tasks report smoke, bias, RMSE, MCSE, and fixed-effect Wald coverage evidence, while q8 now has separate diagnostic smoke/recovery artifact tasks that do not promote coverage or power (#483).The Phase 18 bivariate Gaussian q=4
mu1/mu2location covariance lane now has a multi-replicate recovery companion (biv_gaussian_q4_location_recovery). It reuses the smoke DGP, fit, and runner for the matching(1 + x | p | id)block in both location formulas, runs at recovery-scalen_rep, and reports bias, RMSE, empirical SE, Monte Carlo standard error, and Wald interval coverage. Wald coverage is reported only for the fixedmu1/mu2endpoints; the four location random-effect SDs and the six derived location-location correlations stayderived_interval_unavailable. The lane is aready_gridrandom_slopesregistry row with its own opt-in Actions task and grid writer.The Phase 18 simulation programme now has a bivariate Gaussian q=2 residual-scale intercept covariance smoke lane (
biv_gaussian_q2_scale). It fits the already-supported matchingsigma1 = ~ 1 + (1 | p | id)andsigma2 = ~ 1 + (1 | p | id)block underbiv_gaussian(), summarising the two direct scale SDs fromsdpars$sigmaand the derived scale-scale correlation fromcorpars$sigmawhile keeping residualrho12a separate layer. The lane is registered as acorrelation_blocksrow, has its own Actions task and grid writer, and provides one fittable scale-covariance prerequisite for the q8 endpoint gate.biv_gaussian()now fits matching ordinarymu1/mu2location covariance blocks beyond the slope-only route, including q=4(1 + x | p | id)and q=6(1 + x + z | p | id)blocks in both location formulas with Phase 18 smoke artifact routing. The location SDs appear insdpars$muas directlog_sd_re_covprofile targets, and the group-level correlations appear incorpars$re_cov,corpairs(), andsummary(fit)$covarianceas derived-unavailable interval rows; same-response q2 location-scale slope covariance and q8 all-endpoint covariance now have separate smoke/recovery lanes, while predictor-dependent slopecorpair()regressions, broad q > 2 recovery, coverage, power, and non-Gaussian correlated slopes remain planned (#440, #446).drmTMB()now acceptsREML = TRUEfor the first univariate Gaussian mixed-model slices: dense ordinarymufixed effects, ordinarymurandom intercepts or slopes, diagonal or dense known sampling covariance throughmeta_V(V = V), intercept-onlysigma, complete responses, and no row aggregation, structured effects, or direct random-effect scale formulae. The ordinary mixed-model path is checked againstlme4::lmer(..., REML = TRUE); the known-Vpath matches manual full restricted Gaussian likelihoods andmetaforREML estimates, with the expected fixed-design determinant shift in reportedmetaforlog likelihoods.drmTMB()now retries optimizer-call errors from the default deterministicnlminb()budget with the existing"careful"and"robust"optimizer presets when no explicit optimizer controls were supplied. Successful retries warn and record the selected preset infit$optimizer_usedand all attempted presets infit$optimizer_attempts, while nonzero convergence-code fits still return for diagnostic inspection rather than being silently rerun (#506).drmTMB()now treats namespace-qualified formula markers such asdrmTMB::phylo(...)anddrmTMB::meta_V(...)as their unqualified equivalents during formula parsing, fixing the cryptic length-3 condition error triggered bydrmTMB::phylo()in bivariate formulas (#504).is_converged()now returns a compact no-rerun convergence flag fordrmTMBfits, withinclude_hessian = TRUEavailable when downstream workflows need successfulTMB::sdreport()output andpdHess = TRUEbefore using Wald-style uncertainty (#317).structured_effects()now returns a stable post-fit metadata table for fittedphylo(),spatial(),animal(),relmat(), andphylo_interaction()structured-effect markers, so downstream tools can inspect grouping variables, matrix attachments, matrix slot/source/role IDs, compact precision fingerprints, provider and observed levels, level-alignment policy, input scale, bridge-marshalling boundary, fitted blocks, endpoint sets, coefficient sets, and random-effect block names without grepping formula text (#335).drmTMB()now fits the first sigma-only Gaussian structured one-slope cells forphylo(1 + x | species, tree = tree), fixed-covariancespatial(1 + x | site, coords = coords), A-matrixanimal(1 + x | id, A = A), andrelmat(1 + x | id, K/Q = ...)on the residual-scale formula. The same tranche opens matchedmu+sigmaone-slope native point-fit/extractor cells for those four providers by trackingmu:(Intercept),mu:x,sigma:(Intercept), andsigma:xas separate endpoint members, with deterministic same-target fixture parity banked for the sigma-only and matched cells. The fitted scale-side structured SDs appear insdpars$sigma,ranef(),profile_targets(), and log-sigma predictions; broad bridge support beyond these fixtures, interval reliability, coverage, REML, and AI-REML remain planned.tweedie()now fits the first univariate fixed-effect route for non-negative semicontinuous responses with exact zeros and positive continuous values. The supported syntax isbf(y ~ x, sigma ~ z, nu ~ 1)withlog(mu),log(sigma), publicsigma = sqrt(phi),nu = 1 + plogis(eta_nu),E[y] = mu, andVar(y) = sigma^2 * mu^nu. Random effects, predictor-dependentnu, structured effects, bivariate or mixed-response Tweedie models, zero-inflation aliases, and hurdle aliases remain planned.student(),lognormal(),Gamma(link = "log"),beta(),beta_binomial(), andtruncated_nbinom2()now support ordinary unlabelled independent numericmurandom slopes such as(0 + x | id)beside their first ordinarymurandom-intercept slices. The fitted slope SD appears insdpars$mu,ranef(fit, "mu"),random_effects$mu, directprofile_targets()rows, andcheck_drm()replication/design diagnostics; correlated slopes, labelled covariance, non-Gaussiansigmarandom effects beyond the NB2/lognormal/Gamma intercept gates or shape random effects beyond the exact Student-t phylonulocal-fit gate, broad structured effects, zero-one beta random effects, and hurdle/inflation random effects beyond the exact Poisson spatialzilocal-fit gate remain planned.The non-Gaussian tutorial route now connects count, beta-binomial, beta, and zero-one beta examples through the getting-started article, model map, implemented source map, worked-example inventory, and pkgdown article navigation, while keeping correlated random slopes, zero-one beta random effects, structured bounded responses, known covariance, ordered beta, beta-binomial zero inflation, and mixed bounded-response models planned.
The model-guide route now includes a model-selection article for AIC/BIC comparisons. It shows Gaussian versus Student-t, NB2 versus ZINB2, and constant versus predictor-dependent
sigmacandidates, and it reads a 200-replicate seeded Phase 18 article-support summary that keeps MCSEs, convergence, Hessian, and warning rates beside AIC/BIC target-selection rates. The table is documentation evidence, not a formal power or operating-characteristic grid.zero_one_beta()now fits the first fixed-effect route for continuous proportions on[0, 1]with structural exact 0 or 1 outcomes. The interior beta component usesmuand public scalesigma;zoimodels the probability of an exact boundary outcome;coimodels the probability that a boundary outcome is exactly 1; andfitted()returns the unconditional mean(1 - zoi) * mu + zoi * coi. Random effects, structured effects, denominator syntax, known covariance, and bivariate bounded-response models remain planned or blocked.gr()is now deprecated as a public formula marker. Existing direct calls warn and remain no-op placeholders for compatibility, while new known-relatedness formulas should userelmat()or the biological structured-effect markersanimal(),phylo(), andspatial().meta_known_V()is now deprecated as a formula marker. Existing direct calls and formulas warn, while fitted Gaussian known-covariance models continue to use the same additive known-Vlikelihood path; new code should usemeta_V(V = V).miss_control()now exposes the first missing-data control surface. The defaultresponse = "drop"keeps existing complete-case behaviour, whileresponse = "include"retains missing-response rows for univariate Gaussian models and independent-observation bivariate Gaussian models with complete predictors. Univariate masked responses contribute zero Gaussian likelihood; bivariate partial-response rows contribute the appropriate marginal Gaussian likelihood, both-missing rows contribute zero response likelihood, andfit$missing_datastores original-row accounting and response-pattern counts. The first missing-predictor slices also support one numeric univariate Gaussian location term such asmi(x)withimpute = list(x = x ~ z),impute = list(x = x ~ z + (1 | group)), or an explicit intercept-only structured covariate model such asimpute = list(x = x ~ z + relmat(1 | line, Q = Q))andmissing = miss_control(predictor = "model"), integrating missingxvalues by TMB’s Laplace approximation under a fixed-effect, one random-intercept, or one structured-intercept Gaussian predictor model. The first family-specific non-Gaussian predictor slices support one binarymi(treatment)term withimpute = list(treatment = impute_model(treatment ~ z, family = binomial())), one ordered categoricalmi(score)term withimpute = list(score = impute_model(score ~ z, family = cumulative_logit())), one unordered categoricalmi(habitat)term withimpute = list(habitat = impute_model(habitat ~ z, family = categorical())), one strict proportionmi(cover)term withimpute = list(cover = impute_model(cover ~ z, family = beta())), one boundary-proportionmi(cover)term withimpute = list(cover = impute_model(cover ~ z, family = zero_one_beta())), one denominator-aware proportionmi(cover)term withimpute = list(cover = impute_model(success ~ z, family = beta_binomial(), trials = trials)), one Poisson countmi(abundance)term withimpute = list(abundance = impute_model(abundance ~ z, family = poisson())), one negative-binomial countmi(abundance)term withimpute = list(abundance = impute_model(abundance ~ z, family = nbinom2())), one zero-truncated negative-binomial countmi(abundance)term withimpute = list(abundance = impute_model(abundance ~ z, family = truncated_nbinom2())), one lognormal positive continuousmi(biomass)term withimpute = list(biomass = impute_model(biomass ~ z, family = lognormal())), one Gamma positive continuousmi(biomass)term withimpute = list(biomass = impute_model(biomass ~ z, family = Gamma(link = "log"))), and one Tweedie semi-continuousmi(biomass)term withimpute = list(biomass = impute_model(biomass ~ z, family = tweedie())). Finite-state predictors sum exactly over possible missing states; strict beta/proportion predictors use deterministic quadrature over possible missing proportion values; zero-one beta boundary proportions use exact zero and one mass plus deterministic interior beta quadrature; beta-binomial denominator-aware proportions use deterministic finite summation over possible success counts; Poisson, negative-binomial, and zero-truncated negative-binomial count predictors use deterministic finite summation over count states; lognormal positive predictors use deterministic quadrature over log-scale states; Gamma positive predictors use deterministic quadrature under the Gamma mean-CV predictor model; Tweedie semi-continuous predictors use exact zero mass plus deterministic positive-support quadrature with fixed predictor-model power 1.5.imputed()reports fitted conditional modes for Gaussian missing predictors, fitted conditional probabilities for binary missing predictors, fitted conditional expected scores plus level probabilities for ordered missing predictors, fitted conditional modal categories plus level probabilities for unordered missing predictors, fitted conditional means for strict beta/proportion, boundary-proportion, beta-binomial, lognormal, Gamma, and Tweedie predictors, and fitted conditional expected counts for count predictors. Dense known-Vpartial-response slicing, structured covariate slopes, automatic response-structure inheritance, joint response-covariate structured correlations, multiple missing predictors, grouped or structured non-Gaussian predictor models, EM/profile engines, simulation-based imputed summaries, and measurement-error models remain planned.miss_control(predictor = "model")now has a first non-Gaussian response route: ordinaryfamily = poisson()models can include one fixed-effect binarymi(treatment)predictor withimpute = list(treatment = impute_model(treatment ~ z, family = binomial())). The route sums over the two missing treatment states with the Poisson response likelihood; missing Poisson responses, zero-inflated Poisson response models, Poisson response random or structured effects withmi(), non-binary missing predictors in Poisson response models, and multiple missing predictors remain planned.phylo_interaction()now fits the first q=1 pair-level phylogenetic interaction slice for univariate Gaussianmuand ordinary Poisson/NB2mumodels, using a sparse Kronecker precision from the two partner phylogenies. Use a precomputed pair column with ordinary(1 | pair_id)for independent pair effects, and keep additive partner main phylogenies, binary/Bernoulli incidence models, structured pair slopes, labelled count covariance, and simultaneous structured layers as planned follow-up work (#447).The status and learning docs now consistently lead with
meta_V(V = V)for known sampling covariance, keepmeta_known_V(V = V)as a deprecated compatibility alias, and refresh known-limitations wording so constant spatial, animal-model, andrelmat()q=4 routes plus ordinary Poisson/NB2 q=1 structuredmuroutes are described as bounded first slices rather than broad planned or broad fitted support.Phase 18 now exposes a manual-only
correlation_block_statusActions task that writes read-only CSV status artifacts for residualrho12, ordinary and structured q=2corpairs()rows, and q=4 diagnostic rows. It removes the correlation-block wrapper-target gap without running new models, promoting q=4 intervals, or changing the fitted support boundary (#446).Phase 18 now exposes manual-only
phylo_mu_slope,spatial_mu_slope,animal_mu_slope, andrelmat_mu_slopeActions tasks for the Gaussian structuredmuone-slope grid writers. Historical note, superseded by current 0.6.0 evidence: q1 structuredsigmaone-slope routes now fit for all four providers, and exact non-Gaussian provider gates are recorded in the live ledger. The manual Gaussian tasks remain excluded fromtask = "all"; mesh/SPDE, sparse large-pedigree speed claims, additional multiple or labelled structured-slope layouts outside the exact fitted ledger cells, slope correlations, and non-Gaussian structured slopes outside the exact later gates stay out of their scope.Phase 18 now has a local phylogenetic Gaussian
muone-slope artifact writer. Historical note, superseded by current 0.6.0 evidence: the exact q1 phylogeneticsigmaone-slope route and exact non-Gaussian phylogenetic gates are now fitted at their recorded tiers. The manual Gaussian task remains excluded fromtask = "all"; additional multiple or labelled phylogenetic-slope layouts outside the exact fitted ledger cells, slope correlations, and non-Gaussian phylogenetic effects outside the exact later gates stay out of its scope.Phase 18 now has a local dense-pedigree
animal()Gaussianmuone-slope artifact writer. The DGP, smoke runner, summary helper, grid writer, manualanimal_mu_slopetask, and focused tests save aggregate, replicate-level, manifest, and failure-ledger artifacts foranimal(1 + x | id, pedigree = pedigree). Historical note, superseded by current 0.6.0 evidence: the exact A-matrix q1sigmaone-slope route is now fitted and inference-ready with caveats; pedigree/Ainv bridge marshalling,task = "all"inclusion, sparse large-pedigree speed claims, additional multiple or labelled animal-slope layouts outside the exact fitted ledger cells, and slope correlations remain out of scope.Phase 18 now has a local known-matrix
relmat()Gaussianmuone-slope artifact writer. The DGP, smoke runner, summary helper, grid writer, manualrelmat_mu_slopetask, and focused tests save aggregate, replicate-level, manifest, and failure-ledger artifacts forrelmat(1 + x | id, Q = Q). Historical note, superseded by current 0.6.0 evidence: the exact K/Q q1sigmaone-slope route is now fitted and inference-ready with caveats; broader bridge claims,task = "all"inclusion, additional multiple or labelledrelmat()-slope layouts outside the exact fitted ledger cells, and slope correlations remain out of scope.drmTMB()now exposes the fittedTMB::sdreport()object as both$sdrand$sdreport, making Hessian checks easier to discover. Wald standard errors,vcov(), and Wald confidence intervals are unavailable whenTMB::sdreport()returns butpdHess = FALSE, so non-positive-definite Hessian fits keep point estimates but no longer advertise Hessian-based intervals.The bivariate coscale tutorial and correlation-pair design note now sharpen the reader boundary between residual
rho12, singularcorpair()formula markers, and pluralcorpairs()extraction rows, including fitted structured extraction rows while keeping random effects inrho12and unsupportedcorpair()regressions planned (#443).The ordinary Gaussian random-slope closeout now links the q=3 recovery, q=4 output-contract, extractor,
corpairs(),summary(),profile_targets(), and independent log-sigmaslope evidence before larger Phase 18 power simulations use those rows (#439).The random-slope support matrix now consistently separates fitted ordinary, bivariate slope-only, structured one-slope, selected non-Gaussian
mu, and structured count q=1 routes from their planned neighbours (#438). Historical note, superseded by current 0.6.0 evidence: q1 structuredsigmaone-slope routes now fit for phylo/spatial/animal/relmat; phylo, A-matrix animal, and K/Q relmat are inference-ready with caveats, while spatial intervals remain blocked. Additional multiple or labelled structured-slope layouts outside the exact fitted ledger cells, slope correlations, and broader non-Gaussian neighbours remain planned.confint(method = "profile")now hasprofile_engine = c("auto", "endpoint", "tmbprofile"). The defaultautoroute uses a faster endpoint-only scalar solver for direct constant scale, SD, and correlation targets, with curvature-seeded endpoint brackets and lower/upper endpoint splitting when a single endpoint target is profiled with Unixparallel = "multicore". Fixed-effect profiles,newdataprofiles, linear combinations, and derived targets remain on the existingTMB::tmbprofile()or status-only paths. Profile rows now record the engine inprofile.engine,parallel = "multicore"uses about half the detected CPU cores whenworkers = NULL, andbench/profile-scalar-endpoint.Rrecords endpoint-versus-tmbprofiletiming evidence for the phylogenetic SD target.confint()now defaults to fast Wald intervals for fixed effects plus direct fitted scale, random-effect SD, random-effect correlation, and constantrho12targets whenTMB::sdreport()is available. SD intervals use the fitted log-SD scale, correlation intervals use a guarded Fisher-z/atanh scale,profile_precision = "fast"supplies quicker profile controls for selected long-running targets, andmethod = "bootstrap"adds bounded simulate/refit percentile intervals with refit success/failure counts; positive scale and SD bootstrap intervals use fitted log-scale percentiles before exponentiating endpoints (reported from itchyshin/bergmann-drmTMB#2).confint(method = "bootstrap")now gives a direct-target-only error when a user requests a derived target such as a q4 unstructured correlation, modelledsd(group)surface, repeatability, or phylogenetic signal by exact name or by a broad alias such asparm = "correlations"orparm = "variance_components", instead of reporting the target as unknown or silently dropping unsupported rows.confint(method = "profile")now forwardsparallelandworkersto the target loop and acceptsprofile_maxitas an explicit per-targetTMB::tmbprofile()budget guard. Serial remains the default, Unixmulticorecan split independent profile targets, and user-suppliedmaxitin...is rejected whenprofile_maxitis also supplied.profile()now returns full profile-likelihood curve data for selected directprofile_targets()rows, andplot()draws the likelihood-ratio curve with the fitted estimate, likelihood-ratio cutoff, and profile confidence endpoints. The model-workflow article shows a 95% residual-sigmaprofile and the focused test suite now checks that the sampled curve extends beyond the cutoff on both sides of the interval.profile_targets()now reports fitted q=4 Julia bivariate phylogenetic SD estimates from the storedphylocovcovariance instead of placeholder0.5values. The R-side Julia bridge target inventory now matches the fitted among-axisSigma_ablock before profile or bootstrap intervals are requested (#555).Univariate Gaussian models now fit residual-scale structured random intercepts with
sigma ~ phylo(...),sigma ~ spatial(...),sigma ~ animal(...), andsigma ~ relmat(...). Matching intercept-only structured terms inmuandsigmaestimate one latent structuredmu-sigmacorrelation and report separate SD rows undersdpars$muandsdpars$sigma, correlation rows undercorpars,corpairs(), andprofile_targets(). Historical note, superseded by the current 0.6.0 guidance: exact q1sigmaone-slope routes are now fitted for all four providers, with phylo, A-matrix animal, and K/Q relmat inference-ready with caveats; spatial sigma-slope intervals remain blocked. Additional multiple or labelled structured-sigma layouts outside the exact fitted ledger cells, direct-SD formulas combined with structuredsigma, mesh/SPDE, and non-Gaussian residual-scale structured effects beyond the exact NB2 q1 recovery-grade routes remain planned.Bivariate
sigma()output is now a roundable list forbiv_gaussian()fits, soround(sigma(fit), digits)preserves the documented$sigma1and$sigma2components.The large phylogenetic benchmark runner can now include a real cell-level random intercept through
--cell-random-effect true, giving speed checks a mixed-model path that is closer to applied repeated-cell data.plot_corpairs()now uses Confidence Eye regions by default for supported finite correlation intervals: the eye is a pale Fisher-z/atanh confidence region and the hollow circle is the point estimate. Conventional CI lines remain available withinterval_style = "line"for diagnostic or reader-preference displays.The figure gallery now treats the default Confidence Eye as a stricter visual contract for selected row-wise interval summaries: pale finite confidence region plus hollow point-estimate circle, a dotted zero reference where zero is meaningful, a bottom scale axis, and no filled points, outlines, in-plot titles, or CI bars in default examples. Other figure classes keep purpose-specific grammar: raw-data displays, model surfaces, point summaries, simulation summaries, and support-boundary strips are judged case by case. Variance-component SD rows use log-SD Wald eyes, correlation rows use Fisher-z/atanh eyes, compact point summaries use point-interval displays, and the gallery surface example now labels the shared
sigma ~ temperaturecurve explicitly rather than implying a habitat-specific scale effect.poisson()now fits the labelled-scalar spatial count routebf(count ~ x + spatial(1 | p | site, coords = coords)). The label is treated as a scalar covariance-block tag for the existing q1 spatialmufield and is exposed throughsdpars$mu,ranef("spatial_mu"), and a directprofile_targets()row. This is local fit-only evidence only: q2/q4 count covariance, labelled slopes, simultaneous structured providers, intervals, coverage,inference_ready,supported, REML, AI-REML, bridge support, and public support remain out of scope.nbinom2()now fits the ordinary, non-zero-inflated q=1 phylogeneticmuintercept with syntaxbf(count ~ x + phylo(1 | species, tree = tree), sigma ~ z). The fitted effect is on the log-mean scale whilesigmaremains fixed-effect overdispersion;sdpars$mu,ranef("phylo_mu"),profile_targets()as a directlog_sd_phylotarget, andcheck_drm()phylogenetic diagnostics expose the route. Historical note, superseded by current recovery evidence: exact q1 structuredsigmaintercept-plus-one-slope routes now fit for phylo/spatial/animal/relmat. Labelled q2/q4 count blocks, zero-inflated NB2 phylogeny, richer structured sigma blocks, structured-sigma intervals/coverage, simultaneous structured count types, and count cross-parameter covariance remain planned.poisson()andnbinom2()now fit q=1spatial(),animal(), andrelmat()muintercepts for ordinary non-zero-inflated count models, extending the existing q=1phylo()count route. The fitted log-mean structured SD appears insdpars$mu, marker-specificranef()blocks such asranef("spatial_mu"), directprofile_targets()rows throughlog_sd_phylo, andcheck_drm()structured diagnostics. Historical note, superseded by current recovery evidence: exact q1 structured NB2sigmaintercept-plus-one-slope routes now fit for phylo/spatial/animal/relmat. Pure or multiple structured count slopes, labelled q2/q4 count covariance beyond the exact Poisson scalar-label gate, zero-inflated structured effects beyond the exact local-fit gates, simultaneous structured count types, richer structured sigma blocks, and structured-sigma intervals/coverage remain planned.Phase 18 now has an opt-in count structured q1 artifact lane for ordinary Poisson/NB2
spatial(),animal(), andrelmat()muintercepts. The new DGP, summariser, smoke runner, summary helper, grid writer, manualcount_structured_q1Actions task, and focused tests save aggregate, replicate, manifest, failure-ledger, fixed-effect Wald interval, Wald coverage, directlog_sd_phyloprofile-target, optional profile-interval, interval-evidence, interval-diagnostic, and interval-failure artifacts without adding zero-inflated structure, structured slopes, labelled count covariance, structured NB2sigma,task = "all"inclusion, or formal recovery claims.nbinom2()now fits the first ordinary log-sigmarandom-intercept gate for non-zero-inflated models, with syntax such asbf(count ~ x, sigma ~ z + (1 | id)). The fitted effect models grouped overdispersion on the log-sigmascale and is exposed throughsdpars$sigma,random_effects$sigma,sigma(),predict(dpar = "sigma"), directlog_sd_sigmaprofile targets, andcheck_drm()replication diagnostics. Historical note, superseded by current recovery evidence: exact q1 structured NB2sigmaintercept-plus-one-slope routes now fit for phylo/spatial/animal/relmat. Ordinary NB2sigmaslopes, labelled covariance blocks, jointmu/sigmarandom effects, zero-inflated/truncated/hurdle NB2 scale random effects, richer structured sigma blocks, structured-sigma intervals/coverage, and Poisson scale random effects remain planned or inapplicable.beta()andbeta_binomial()now support ordinary unlabelledmurandom intercepts and independent numeric slopes such asbf(prop ~ x + (1 | id) + (0 + x | id), sigma ~ z)for strict(0, 1)responses andbf(cbind(success, failure) ~ x + (1 | id) + (0 + x | id), sigma ~ z)for counted successes out of known trials. The fitted logit-mean or logit-success-probability SD appears insdpars$mu,random_effects$mu, directprofile_targets()rows, andcheck_drm()replication diagnostics; correlated bounded-response random slopes, labelled covariance blocks,sigmarandom effects, exact 0/1 boundary mass,zoi/coi, structured effects, known covariance, and bivariate or mixed bounded-response models remain planned.student()now supports ordinary unlabelledmurandom intercepts and independent numeric slopes such asbf(y ~ x + (1 | id) + (0 + x | id), sigma ~ z, nu ~ 1). The fitted location SD appears insdpars$mu,random_effects$mu, directprofile_targets()rows, andcheck_drm()replication diagnostics; correlated Student-t random slopes, labelled covariance blocks,sigmarandom effects,nurandom effects beyond the exact phylo local-fit gate, broad structured effects, known covariance, and bivariate Student-t models remain planned.lognormal()andGamma(link = "log")now support ordinary unlabelledmurandom intercepts and independent numeric slopes such asbf(y ~ x + (1 | id) + (0 + x | id), sigma ~ z). The fitted SDs appear insdpars$mu,random_effects$mu, directprofile_targets()rows, andcheck_drm()replication diagnostics. This historical ordinary-effect entry is superseded in part by the exact Arc 3a q1 Gamma-phylo and lognormal-phylo/relmat intercept gates; correlated positive-continuous random slopes, labelled covariance blocks,sigmaslopes, labelled or combinedsigmarandom effects, other structured positive-continuous effects, known covariance, and bivariate or mixed positive-continuous models remain planned.Phase 18 now has a Student-t
murandom-intercept artifact lane forstudent(). The new DGP, summariser, smoke runner, grid writer, first-wave runner inclusion, manualstudent_mu_random_interceptActions task, and focused tests save aggregate, replicate, manifest, failure-ledger, fixed-effect Wald interval, Wald coverage, direct-SD profile interval, and profile coverage artifacts for ordinary(1 | id)inmuwith fixed-effectsigmaandnu, while keeping correlated Student-t random slopes, labelled covariance blocks,sigmarandom effects,nurandom effects beyond the exact phylo local-fit gate, broad structured effects, known covariance, and bivariate Student-t models out of scope.Phase 18 now has a zero-truncated NB2
murandom-intercept artifact lane fortruncated_nbinom2(). The new DGP, summariser, smoke runner, grid writer, first-wave runner inclusion, manualtruncated_nbinom2_mu_random_interceptActions task, and focused tests save aggregate, replicate, manifest, failure-ledger, fixed-effect Wald interval, Wald coverage, direct-SD profile interval, and profile coverage artifacts for ordinary(1 | id)inmu, while keeping correlated zero-truncated NB2 random slopes, labelled covariance blocks,sigmarandom effects, hurdle random effects, zero-inflated zero-truncated models, structured effects, and bivariate count models out of scope.Phase 18 now has a bounded-response
murandom-intercept artifact lane forbeta()andbeta_binomial(). The new DGP, summariser, smoke runner, grid writer, first-wave runner inclusion, manualbounded_response_mu_random_interceptActions task, and focused tests save aggregate, replicate, manifest, failure-ledger, fixed-effect Wald interval, Wald coverage, direct-SD profile interval, and profile coverage artifacts for ordinary(1 | id)inmu, while keeping correlated bounded-response random slopes, labelled covariance blocks,sigmarandom effects, exact 0/1 boundary mass, zero-one beta random effects, structured effects, known covariance, and mixed bounded-response models out of scope.Phase 18 now has a fixed-effect proportion artifact lane for
beta()andbeta_binomial(). The new DGP, summariser, smoke runner, grid writer, first-wave runner inclusion, manualproportion_fixed_effectActions task, and focused tests save aggregate, replicate, manifest, failure-ledger, fixed-effect Wald interval, and Wald coverage artifacts while keeping exact 0/1 boundary mass,zoi/coi, correlated bounded-response random slopes, labelled covariance blocks,sigmarandom effects, structured bounded responses, and mixed-response bounded models out of scope.Phase 18 now has a fixed-effect positive-continuous artifact lane for
lognormal()andGamma(link = "log"). The new DGP, summariser, smoke runner, grid writer, first-wave runner inclusion, manualpositive_continuous_fixed_effectActions task, and focused tests save aggregate, replicate, manifest, failure-ledger, fixed-effect Wald interval, and Wald coverage artifacts while keeping Tweedie, generalized Gamma, positive-response random effects beyond the ordinarymuintercept slice, known-covariance positive responses, structured positive responses, and mixed-response positive-continuous models out of scope.Phase 18 now has a positive-continuous
murandom-intercept artifact lane forlognormal()andGamma(link = "log"). The new DGP, summariser, smoke runner, grid writer, first-wave runner inclusion, manualpositive_continuous_mu_random_interceptActions task, and focused tests save aggregate, replicate, manifest, failure-ledger, fixed-effect Wald interval, Wald coverage, direct-SD profile interval, and profile coverage artifacts for ordinary(1 | id)inmu, while keeping correlated positive-continuous random slopes, labelled covariance blocks,sigmarandom effects, Tweedie, generalized Gamma, structured effects, known covariance, and mixed positive-continuous models out of scope.Phase 18 added a fixed-effect ordinal artifact lane for
cumulative_logit(). Historical note, superseded in part by later ordinarymuintercept/slope recovery and an exact phylogenetic intercept gate: this artifact lane itself covers only aggregate, replicate, manifest, failure-ledger, fixed-effect Wald interval, Wald coverage, cutpoint, and cutpoint-ordering outputs; correlated/labelled or other structured ordinal effects, ordinal scale/discrimination formulas, bivariate ordinal models, and mixed-response ordinal models remain out of scope.Phase 18 now has a fixed-effect zero-one beta artifact lane for
zero_one_beta(). The new DGP, summariser, smoke runner, grid writer, first-wave runner inclusion, manualzero_one_beta_fixed_effectActions task, and focused tests save aggregate, replicate, manifest, failure-ledger, fixed-effect Wald interval, and Wald coverage artifacts while keeping zero-one random effects, covariance blocks, denominator syntax, known covariance, structured bounded responses, and bivariate or mixed bounded-response models out of scope.Phase 18 Slice C now closes the count first-wave review lane as a documented evidence inventory rather than a new syntax lane. The new count-closure note ties together paired Poisson/NB2
murandom effects, NB2 log-sigmarandom intercepts, Poisson q1 phylo, NB2 q1 phylo, the NB2hold_smoke_onlyformal gate, and the next Slice D choices while keeping COM-Poisson, generalized Poisson, Tweedie, zero-one beta, skew-normal, and new random-effect syntax out of scope.Phase 18 now has an overdispersion-aware NB2 phylogenetic q1 formal-admission lane for
bf(count ~ x + phylo(1 | species, tree = tree), sigma ~ z). The new ADEMP sheet, DGP, target-plus-grouped-comparator fitter, summariser, smoke runner, summary helper, grid writer, formal-grid spec/read-back QA helpers, promotion-decision helper, focused tests, and manualnbinom2_phylo_q1_formalActions task save aggregate, replicate, manifest, failure-ledger, Wald interval, Wald coverage, directlog_sd_phyloprofile-target, optional profile-interval, interval-evidence, interval-diagnostic, and interval-failure artifacts. This does not create formal recovery or coverage claims until the 500-replicate grid is run and audited.Phase 18 Slices 541-555 now record a local NB2 phylogenetic q1 formal-audit pass. The all-cell sentinel ran 288 formal cells once and the representative audit ran 24 formal-shaped cells with five replicates each, both with direct
log_sd_phyloprofiles and grouped-comparator rows. The artifacts passed read-back QA, all sentinel fits and all replicate-audit rows converged, and the promotion helper correctly keeps the route athold_smoke_onlybecause the 500-replicate formal recovery gate was not run. Profile failures at truesd_phylo = 0and fixed-sigmainstability in low-count, low-overdispersion cells remain visible audit boundaries.Phase 18 formal phylogenetic q1 Actions tasks now accept one-based
condition_shardandcondition_shardsinputs. The NB2 q1 full-grid singleton dispatch was cancelled after existing manifest timings implied a 27-31 hour run under optimistic ten-worker assumptions, so shard artifacts now record shard metadata and require a merged audit before any coverage claim.Phase 18 formal phylogenetic q1 Actions tasks now use shard-aware concurrency groups, so manually dispatched 16-shard NB2 q1 formal runs do not replace earlier pending shards. The supported non-Gaussian evidence goal is now recorded as an evidence closeout for fixed-effect non-Gaussian families plus first count mixed-model lanes, not as broad non-Gaussian random-effect or structured-effect parity.
Phase 18 NB2 q1 formal shard artifacts have now been downloaded and audited together. The completed 16-shard x 500-replicate set has all 288 formal condition cells and 144,000
okmanifest rows, but the route remainshold_smoke_onlybecause directlog_sd_phyloprofile intervals are boundary-sensitive and low-count fixed-sigmarecovery remains unstable.Phase 18 Slice D3 records the zero-one bounded-response design gate. The note separates strict
beta(), denominator-awarebeta_binomial(), and zero-one beta responses with exact 0/1 mass while keeping zero-one random effects, correlated or broader bounded-response random slopes, structured bounded responses, Tweedie, skew-normal, COM-Poisson, and generalized Poisson out of the fitted surface.poisson(link = "log")now fits the first structured non-Gaussian dependence slice: an ordinary, non-zero-inflated q=1 phylogeneticmuintercept with syntaxbf(count ~ x + phylo(1 | species, tree = tree)). The fitted effect is on the log-mean scale and is exposed throughsdpars$mu,ranef("phylo_mu"),profile_targets()as a directlog_sd_phylotarget, andcheck_drm()phylogenetic diagnostics. This is intentionally not broad count parity: pure or multiple structured count slopes, labelled q=2/q=4 count blocks, zero-inflated structured count effects, simultaneous structured count types, and count cross-parameter covariance remain planned.biv_gaussian()now fits constant coordinate-spatial q=4 location-scale blocks when the same labelledspatial(1 | p | site, coords = coords)term appears inmu1,mu2,sigma1, andsigma2. The fitted route reports four spatial endpoint SDs and six derived latent spatial correlations throughcorpairs(level = "spatial"),summary()$covariance,profile_targets(), andcheck_drm(), with q=4 correlation intervals marked derived-unavailable. Historical note, superseded by the current 0.6.0 guidance: the q1 spatialsigmaone-slope route now has point-fit/extractor evidence, although its interval gate remains blocked; mesh/SPDE, block-diagonal or broader intercept-plus-slope spatial covariance beyond the exact fixed-covariance all-four one-slope cell, additional multiple or labelled spatial-sigma layouts outside the exact fitted ledger cells, predictor-dependent spatialcorpair()regression, direct spatial SD surfaces, and non-Gaussian spatial effects outside the exact ordinary Poisson/NB2 q1 spatialmuintercept-plus-one-slope, recovery-grade NB2 q1 spatialsigma, Student-t spatialmu, Poisson spatialzi, fixed-ziPoisson spatialmu, and fixed-ziNB2 spatialmugates remain planned (#5).The implementation-map roadmap now records Slices 356-380 as the fitted spatial q4 closeout and Slices 381-388 as the first non-Gaussian structured front gate. The new Poisson q1 ADEMP sheet keeps the first structured non-Gaussian simulation gate to one non-zero-inflated Poisson
muphylogenetic intercept, whilezi,hu, scale, shape, ordinal, bounded-response, mixed-response, spatial, animal,relmat(), slope, q2, and q4 structural layers remain planned rather than fitted.The implementation-map roadmap now records Slices 389-405 as the remaining non-Gaussian structured-dependence planning gates. These close the scale, shape, ordinal, known-covariance, extractor, diagnostic, simulation, interval, fallback, error-message, grammar, documentation, and issue-template contracts without adding new likelihood, TMB, or formula-grammar code.
The implementation-map roadmap now records Slices 406-420 as route-specific non-Gaussian structured issue drafts. These add a Poisson q1 implementation issue body, Poisson q1 smoke-runner body, malformed-neighbour test body, documentation-sync body, NB2 q1 ADEMP skeleton, probability-component and scale/shape boundaries, and extractor/diagnostic name registries without opening new code.
The implementation-map roadmap now records Slices 421-435 as the Poisson phylogenetic q1 runner contract. This names the direct
log_sd_phylotarget,sdpars$muandranef("phylo_mu")extractor checks, manifest and warning/error schemas, smoke and formal-grid gates, stale-doc corrections, malformed-neighbour error table, and focused test plan without adding new likelihood code.The implementation-map roadmap now records Slices 436-450 as Poisson phylogenetic q1 evidence-ledger synchronization. The source map, validation-debt register, Phase 18 programme, readiness matrix, and family registry now point to the runner contract before broad simulation claims.
Phase 18 now has an opt-in Poisson phylogenetic q1 smoke surface for the ordinary non-zero-inflated
phylo(1 | species, tree = tree)muroute. The new DGP, fitter, summariser, runner, summary helper, and focused tests return aggregate, replicate, manifest, failure-ledger, Wald fixed-effect interval, Wald coverage, and directlog_sd_phyloprofile-target status tables; formal recovery grids remain future work.Phase 18 now has a repeatable grid-output writer for the Poisson phylogenetic q1 smoke surface, saving aggregate, replicate, manifest, failure-ledger, Wald interval, Wald coverage, and direct profile-target CSVs beside resumable per-replicate RDS files.
Phase 18 Poisson phylogenetic q1 artifacts now include optional direct
log_sd_phyloprofile intervals, interval-evidence diagnostics, a formal-grid spec/read-back QA wrapper, a promotion-decision helper, and a manualpoisson_phylo_q1_formalGitHub Actions task. The formal task is excluded fromtask = "all"; formal recovery or coverage claims still require the 500-replicate gate and artifact review.Phase 18 now has a separate ordinary NB2 log-
sigmarandom-intercept smoke lane forbf(count ~ x, sigma ~ z + (1 | id)). The new DGP, summariser, runner, summary helper, and grid writer save aggregate, replicate, manifest, failure-ledger, Wald interval, Wald coverage, directlog_sd_sigmaprofile-target, optional profile-interval, interval-evidence, interval-diagnostics, and interval-failure artifacts beside resumable RDS results. Historical note, superseded by current 0.6.0 evidence: NB2 q1 structuredsigmaintercept-plus-one-slope routes for phylo/spatial/animal/relmat now have recovery-grade point-fit evidence. This is still not broad NB2 scale parity: ordinary NB2sigmaslopes, jointmu/sigmarandom effects, structured sigma intervals/coverage, richer structured blocks, and zero-inflated/truncated/hurdle scale random effects remain planned.The implementation-map roadmap now records Slices 526-540 as the NB2 phylogenetic q1 overdispersion-aware formal-admission lane. This adds the ADEMP sheet, DGP, target-plus-grouped-comparator fit, summariser, smoke runner, grid writer, formal-grid QA helpers, manual Actions task, tests, and docs sync while keeping formal recovery claims gated on a later 500-replicate run and audit.
The implementation-map roadmap now records Slices 496-510 as the NB2 phylogenetic q1 implementation slice. This adds the ordinary non-zero-inflated NB2
muphylogenetic intercept, TMB prior contribution, extractor/profile/diagnostic tests, and neighbouring-route guards. Historical note, superseded by current 0.6.0 evidence: NB2 q1 structuredsigmaintercept-plus-one-slope routes for phylo/spatial/animal/relmat now have recovery-grade point-fit evidence; their intervals/coverage, NB2zi, richer structured slopes, and broader count covariance remain planned.The implementation-map roadmap now records Slices 341-355 as implementation-ready issue templates and acceptance gates for generic direct-SD syntax, p8/q8 slope covariance, spatial q4 parity, Poisson/NB2 q1 structured-count candidates, non-Gaussian structured ADEMP sheets, user documentation, review roles, and validation handoffs; these remain planning slices and do not add new fitted model surfaces.
The implementation-map roadmap now records Slices 326-340 as pre-code specifications for generic direct-SD syntax, p8/q8 endpoint registries, spatial q4 parity, q4 diagnostics, Poisson/NB2 q1 structured-count candidates, user-route examples, and stale-claim checks; these remain planning slices and do not add new fitted model surfaces.
The implementation-map roadmap now also records Slices 311-325 as design gates for generic structured direct-SD syntax, p8/q8 endpoint taxonomy, structured q=4 ordering, q=4 interval status, non-Gaussian structured-dependence candidate scoring, and user-route examples; these are planning slices, not new fitted likelihood claims.
The implementation-map roadmap now records Slices 303-310 as planning and documentation gates rather than new likelihood work: generic
sd*()design, p8/q8 location-scale planning, structured q=4 parity, q=4 interval policy, a no-fit decision for random effects in probability components such aszi,hu,zoi, andcoi, a non-Gaussian structured-dependence candidate map, maintenance scans, and user-route guidance.The pkgdown site now includes an implementation map that separates fitted, first-slice, fixed-effect-only, planned, and blocked surfaces across families, random-effect layers, q, random slopes,
corpairs(),zi, andhu, and uses it as the roadmap-facing ledger for future parity work.biv_gaussian()now fits the first ordinary bivariate random-slope covariance route: matching slope-onlymu1/mu2blocks such as(0 + x | p | id)in both location formulas. The fitted slope-slope row appears insdpars$mu,corpars$mu,ranef(),corpairs(),summary()$covariance,profile_targets(), andcheck_drm(); matching q=4 and q=6mu1/mu2location blocks, same-response q2 location-scale slope covariance, and q8 all-endpoint covariance now have separate diagnostic artifact routes, while predictor-dependent slopecorpair()regressions, q8 coverage/power evidence, and non-Gaussian structured slope covariance remain planned.The structural-dependence tutorial path now includes a focused coordinate-spatial page for fitted
spatial(coords = coords)Gaussianmuintercept, residual-scalesigmaintercept, one numericmuslope, q=2 bivariate location-covariance, and constant q=4 location-scale routes. Historical note, superseded by the current 0.6.0 guidance: the q1 spatialsigmaone-slope route now has point-fit/extractor evidence, although its interval gate remains blocked; mesh/SPDE inputs, additional multiple or labelled slope layouts outside the exact fitted ledger cells, direct spatial SD surfaces, spatialcorpair()regressions, simultaneous phylo-plus-spatial layers, and non-Gaussian spatial effects outside the exact ordinary Poisson/NB2 q1 spatialmuintercept-plus-one-slope, recovery-grade NB2 q1 spatialsigma, Student-t spatialmu, Poisson spatialzi, fixed-ziPoisson spatialmu, and fixed-ziNB2 spatialmugates remain planned.The structural-dependence tutorial path added a focused phylogenetic page for fitted Gaussian routes. Historical note, superseded in part by exact non-Gaussian gates: ordinary Poisson/NB2 q1 phylogenetic
muintercept-plus-one-slope, recovery-grade NB2 q1 phylogeneticsigma, Student-t q1 phylogeneticnu, and cumulative-logit q1 phylogeneticmunow fit at their recorded tiers; additional multiple or labelled slope layouts outside the exact fitted ledger cells, slope correlations, matrix-input phylogeny, combined phylo-plus-spatial layers, q4corpair()regressions, and non-Gaussian phylogenetic neighbours outside those gates remain planned.The structural-dependence tutorial path now includes a focused
relmat()page for fitted known-matrix Gaussianmuandsigmaintercept slices, one-slopemupaths, matching q=2 bivariate location covariance, and constant q=4 location-scale covariance. Historical note, superseded by the current 0.6.0 guidance: the exact K/Q q1sigmaone-slope route is now fitted and inference-ready with caveats; broader bridge claims, additional multiple or labelled slope layouts outside the exact fitted ledger cells, slope correlations, predictor-dependentcorpair()regression, and meta-analysis sampling covariance remain separate.The structural-dependence tutorial path now includes a focused animal-model page for the fitted
animal(pedigree/A/Ainv)Gaussianmuandsigmaintercept slices, one-slopemupaths, matching q=2 bivariate location covariance, and constant q=4 location-scale covariance. Historical note, superseded by the current 0.6.0 guidance: the exact A-matrix q1sigmaone-slope route is now fitted and inference-ready with caveats; pedigree/Ainv bridge marshalling, sparse pedigrees, additional multiple or labelled slope layouts outside the exact fitted ledger cells, slope correlations, and animalcorpair()regression remain planned.The structural-dependence tutorial path now has a small overview article that helps readers choose between
animal(),phylo(), coordinatespatial(), planned phylo-plus-spatial models, andrelmat()before entering the longer technical tutorial.The figure gallery now shows spatial, animal, and
relmat()q=2 fitted correlation rows beside residualrho12, ordinary group, and phylogenetic rows, and marks the constant spatial q=4 block as partly fitted beside still-planned structured correlation-regression and standalone scale extensions.animal()now fits a dense first pedigree route for Gaussianmuandsigmaanimal intercept effects:animal(1 | id, pedigree = pedigree)builds an additive relationship matrix fromid,dam, andsirecolumns, one numericanimal(1 + x | id, pedigree = pedigree)muslope fits as independent intercept and slope fields, and matching labelledanimal(1 | p | id, pedigree = pedigree)terms work in the first bivariate q=2 location-covariance and constant q=4 location-scale paths. Historical note, superseded by the current 0.6.0 guidance: the exact A-matrix q1sigmaone-slope route is now fitted and inference-ready with caveats; pedigree/Ainv bridge marshalling, large-pedigree sparse precision construction, additional multiple or labelled structured-slope layouts outside the exact fitted ledger cells, slope correlations, predictor-dependentcorpair()regressions, and generic direct-SD grammar remain planned (#147).biv_gaussian()now fits the first animal-model and lower-level relatedness q=2 known-matrix location covariance: matchinganimal(1 | p | id, A = A)/animal(1 | p | id, Ainv = Ainv)orrelmat(1 | p | id, K = K)/relmat(1 | p | id, Q = Q)terms inmu1andmu2. The fitted rows appear insdpars$mu,corpars$animalorcorpars$relmat,ranef("animal_mu")orranef("relmat_mu"),corpairs(),summary()$covariance,profile_targets(), andcheck_drm(). Historical note, superseded by the current 0.6.0 guidance: univariate Gaussiansigmaintercepts, one numericmuslope, and the exact A-matrix animal and K/Q relmat q1sigmaone-slope routes are fitted; the sigma slopes are inference-ready with caveats. Pedigree/Ainv bridge marshalling, additional multiple or labelled structured-slope layouts outside the exact fitted ledger cells, slope correlations, predictor-dependentcorpair()regressions, and generic direct-SD grammar remain planned (#147).biv_gaussian()now also fits constant all-four q=4 animal-model andrelmat()location-scale blocks when the same labelled known-matrix term appears inmu1,mu2,sigma1, andsigma2. These rows reuse the structured covariance backend and report four endpoint SDs and six derived latent correlations throughcorpairs(),summary()$covariance,profile_targets(), andcheck_drm(). Historical note, superseded by the current 0.6.0 guidance: exact q1 A-matrix animal and K/Q relmatsigmaone-slope routes are now fitted and inference-ready with caveats; additional multiple or labelled structured-slope layouts outside the exact fitted ledger cells, slope correlations, predictor-dependentcorpair()regressions, and direct-SD grammar remain planned (#147).The pkgdown workflow now builds the advertised single-site URL rather than publishing only the
dev/subtree for development versions, sohttps://itchyshin.github.io/drmTMB/remains the public entry point.
drmTMB 0.1.3 (2026-05-20)
-
animal()andrelmat()now fit the first known-relatedness Gaussianmurandom-intercept slice:animal(1 | id, A = A),animal(1 | id, Ainv = Ainv),relmat(1 | id, K = K), andrelmat(1 | id, Q = Q). The fitted latent scale appears insdpars$mu, conditional effects appear inranef("animal_mu")orranef("relmat_mu"), direct scale targets appear inprofile_targets(), andcheck_drm()reports replication and scale-ratio diagnostics. Historical note, superseded by current 0.6.0 evidence: one-slopemu,sigmaintercept and exact q1 one-slope routes, and selected bivariate relatedness covariance are fitted where documented. Sparse large-pedigree construction, additional multiple or labelled structured-slope layouts outside the exact fitted ledger cells, broader covariance/bridge claims, and predictor-dependentcorpair()regressions remain planned (#147). -
biv_gaussian()now fits the first coordinate-spatial q=2mu1/mu2location covariance through matchingspatial(1 | p | site, coords = coords)terms. The fitted spatial SDs appear insdpars$mu, conditional fields inranef("spatial_mu"), the spatial mean-mean row incorpairs(level = "spatial")andsummary()$covariance, and direct SD/correlation targets inprofile_targets(); mesh/SPDE, spatialsigma, spatial q=4, direct spatial SD surfaces, and predictor-dependent spatialcorpair()regression remain planned (#5).
drmTMB 0.1.2 (2026-05-16)
-
drm_control()now hasoptimizer_preset = "careful"and"robust"for explicitnlminb()optimizer-budget presets. These expand to recordediter.maxandeval.maxcontrols, keep the default fit fast, and can still be overridden withoptimizer = list(...). -
drm_control()now reserves fallback-optimizer control names such asfallback_optimizer,fallback_optimizers, andoptimizer_fallbackwhile documenting the future selected-optimizer provenance contract. Fallback BFGS or L-BFGS-B refits remain planned, not automatic. -
drm_control()now reserves warm-start control names such asstart_from,warm_start, andwarm_start_fromso simpler-fit starts cannot be silently passed tonlminb()before the source-fit contract is implemented. - Phase 18 private parametric-bootstrap helpers now accept serial or Unix
multicoreexecution, cap actual workers at 10, and record requested versus actual core counts in bootstrap draw and interval tables; PSOCK remains excluded until fittedTMBobject rebuilds are explicit. - Phase 18 replicate execution now has a private bounded runner helper, with the Gaussian location-scale,
meta_V(V = V), Poisson and NB2murandom-effect, Gaussianmuandsigmarandom-slope, coordinate spatialmuslope, Student-t shape, and bivariate residualrho12smoke surfaces wired through serial or Unixmulticoreexecution capped at 10 workers; closure-heavy runners use a per-replicate summary factory to preserve profile and bootstrap seeds. Higher-level grid and count-gallery wrappers now forward runner settings, and Student-t shape plus bivariate residualrho12wrappers carry separate bootstrap backend settings with a guard against multicore replicate and multicore bootstrap layers running at the same time. - The paired Poisson/NB2
murandom-effect Phase 18 lane now has a repeatable grid-output writer that saves aggregate, replicate, manifest, failure-ledger, Wald interval, Wald coverage, profile interval, and profile coverage CSV artifacts beside resumable per-replicate RDS files. - The Phase 18
meta_V(V = V)lane now has a repeatable grid-output writer that saves aggregate, replicate, manifest, failure-ledger, Wald interval, and Wald coverage CSV artifacts beside resumable per-replicate RDS files. - Phase 18 now also has repeatable simple grid-output writers for ordinary Gaussian
murandom slopes, independent Gaussiansigmarandom slopes, and coordinate-spatial Gaussianmuslopes. - Phase 18 grid writers now return an artifact manifest with path existence and CSV row counts, including zero-row handling for optional interval artifacts.
- Phase 18 artifact manifests can now be bound across grid-writer outputs and summarized by surface, giving report-staging code a compact check of present, missing, empty, and total CSV rows.
- Phase 18 first-wave report staging now has a private artifact-status writer that saves bound artifact-manifest and surface-status CSVs from multiple grid-writer outputs before a report reads the simulation tables.
- Phase 18 first-wave report staging now includes an artifact-status report template that reads the bound manifest and status CSVs first, renders a preflight page for complete outputs, and stops clearly when required artifacts are missing.
- Phase 18 first-wave report staging now has a private table-bundle writer that combines selected CSV artifacts across grid-writer outputs, preserving source surface and artifact names as leading columns while filling missing columns.
- Phase 18 first-wave report staging now includes a summary-report skeleton that reads artifact status, aggregate operating-characteristic rows, interval coverage, interval diagnostics, interval failures, manifests, and warning/error ledgers in one page, with priority columns, row caps, a compact aggregate-bias overview, compact interval-coverage summaries, run-manifest summaries, and compact warning/error summaries for table-first review.
- Phase 18 first-wave report staging now has a reusable private smoke runner that executes the Gaussian location-scale,
meta_V(V = V), paired Poisson/NB2murandom-effect, ordinary Gaussianmurandom-slope, ordinary Gaussiansigmarandom-slope, and coordinate-spatial Gaussianmuslope grid writers, stages the combined first-wave summary report, and records requested versus actual worker counts. - Phase 18 interval-heavy report staging now has a separate private smoke runner for Student-t shape and bivariate residual
rho12grid writers, keeping their Wald/profile/bootstrap interval artifacts separate from the baseline first-wave runner. - Phase 18 first-wave report staging now has a render helper that writes artifact status, table bundles, and an optional HTML summary report from grid-writer outputs in one orchestration step.
-
check_drm()now reports the largest fixed-gradient component label in thefixed_gradientdiagnostic row, making non-converged or flat-surface fits easier to triage before Hessian or Wald inference is trusted. -
biv_gaussian()now fits multiple independent same-response labelledmu/sigmarandom-intercept covariance blocks in one two-response model, for examplemu1/sigma1with labelpandmu2/sigma2with labelqplus residualrho12.corpairs(),profile_targets(),summary(), andcheck_drm()keep the two mean-scale rows separate from residualrho12and from same-parametermu1/mu2orsigma1/sigma2blocks. - Interval documentation now separates fitted-model Wald and profile intervals from Phase 18 Fisher-z simulation helpers, and tests confirm Student-t
nufixed-effect interval targets plus Fisher-z-scale correlation-helper output. -
meta_V(V = V)now has explicit full-matrix alias coverage with Wald fixed-effect interval checks, documentation points to it as the preferred known-covariance spelling, andmeta_V(V = V, scale = "exact")now errors with guidance that the exact additive route is already selected bymeta_V(V = V). - Bergmann-report follow-up now hardens invalid Wald standard-error rows, documents long-iteration triage, implements the labelled phylogenetic q4-to-two-q2 block-diagonal fallback, and records the Ayumi Mass + Beak fallback as a boundary/false-convergence diagnostic case. The earlier unsupported univariate
sigma ~ phylo(...)boundary is now superseded by the fitted intercept-only structuredsigmaroute described above. - Structural-dependence docs now give a clearer user surface for planned
animal()andrelmat()models, including what fitted sensitivity model to use now and when a known matrix belongs tometa_V(V = V)instead of a future latent relatedness path. - Structural-dependence design notes now separate dense covariance inputs (
A,K) from sparse precision inputs (Ainv,Q) for futureanimal()andrelmat()models, keeping large-pedigree or large-matrix speed claims blocked until sparse-precision recovery and scaling evidence exists. - The family registry now has a Slice 283 family-and-parameter evidence map, listing each public family route, distributional-parameter link, shape or coscale slot, fitted random-effect allowance, and test evidence state before later count, proportion, shape, ordinal, or mixed-response hardening work expands those rows.
- Count-family tests now assert Wald fixed-effect interval rows for Poisson, NB2, zero-truncated NB2, zero-inflated Poisson, zero-inflated NB2, and hurdle NB2 dpars, and the count tutorial now names ordinary non-zero-inflated Poisson/NB2
murandom intercepts and independent slopes as the current fitted mixed-count route. - Proportion-family tests now assert Wald fixed-effect interval rows for beta and beta-binomial
muandsigmacoefficients, and the proportion tutorial now states that fixed-effectbeta()andbeta_binomial()plus ordinary unlabelledmurandom intercepts and independent numeric slopes are fitted while zero-one inflation, correlated bounded-response random slopes, labelled covariance blocks,sigmarandom effects, andmeta_V(V = V)bounded-response routes remain planned or blocked. - Continuous-shape design notes now separate fitted fixed-effect Student-t
nu, fitted fixed-effect skew-normalnu, planned skew-tnu/tau, and future latent-effectskew(id) ~ ..., keeping shape and skewness random effects out of Phase 18 simulation until likelihood, recovery, diagnostic, and interval evidence exists. - Ordinal readiness docs recorded the original fixed-effect
cumulative_logit()evidence ledger. Historical note, superseded in part by later ordinarymuintercept/slope recovery and an exact phylogenetic intercept gate: broader ordinal covariance and scale/discrimination formulas remain planned. - Mixed-response bivariate family docs now keep Gaussian-count, Gaussian-proportion, count-proportion, ordinal mixed, and other two-response combinations planned until a joint likelihood or copula/latent-variable contract, prediction, simulation, extractors, intervals, examples, and comparator checks exist; tests cover mixed-family errors for
c()andlist()spellings. -
corpairs()now returnsconf.statusandinterval_sourcecolumns by default, matching the prediction-table provenance contract.plot_corpairs()now draws finite bounds only when those columns mark a real interval source, so compatible pair tables cannot imply confidence intervals from bare numeric limits alone. - User-facing docs now share a status vocabulary for stable, first slice, opt-in, planned or reserved, and unsupported or blocked surfaces across README, the model-map article, the package reference topic, getting-started article, source-map guidance, and pkgdown reference groups.
- The pre-simulation readiness matrix now includes a Slice 291 evidence-ledger gate: every public stable-core row is mapped to implementation evidence, tests or diagnostics, user-facing boundaries, and Phase 18 admission status before comprehensive simulation design can treat it as admitted.
- The Phase 18 simulation programme now has a Slice 292 comprehensive design map covering continuous, proportion, count, ordinal, meta-analysis, bivariate, random-slope, shape, phylogenetic, spatial,
animal(), andrelmat()lanes, while keeping planned or blocked lanes in the failure ledger instead of fitted grids. - Phase 18 now has its first one-page ADEMP sheet for the admitted Gaussian location-scale lane, tying the existing
phase18_dgp_gaussian_ls()helper to aims, DGP conditions, estimands, methods, performance measures, and Williams-style reporting checks before larger grids run. - Phase 18 now has a one-page ADEMP sheet for the admitted Gaussian
meta_V(V = V)lane, keeping known sampling covariance as input data and public residualsigmaas the fitted heterogeneity estimand before vector or dense known-Vgrids expand. - Phase 18 now has a one-page ADEMP sheet for the paired Poisson/NB2
murandom-effect lane, keeping the first count grid to ordinary non-zero-inflatedmurandom intercepts and independent numeric slopes while zero-inflated, hurdle, zero-truncated, structured, correlated-slope, and labelled covariance count models remain failure-ledger rows. - Phase 18 now has a one-page ADEMP sheet for the fixed-effect proportion lane, separating strict continuous
beta()responses from denominator-awarebeta_binomial()success counts while keeping exact 0/1 boundary mass outside that earlier beta/beta-binomial artifact lane. Random effects beyond the beta and beta-binomial ordinarymuintercept/slope slices, structured effects, known sampling covariance, and mixed-response bounded models remain in the failure ledger. - Phase 18 added a one-page ADEMP sheet for the fixed-effect ordinal lane. Historical note, superseded in part by later ordinary
muintercept/slope recovery and an exact phylogenetic intercept gate: correlated/labelled or other structured ordinal effects, scale/discrimination formulas, cutpoint-specific predictors, bivariate ordinal models, and mixed-response ordinal models remain in the failure ledger. - Phase 18 now has a one-page ADEMP sheet for the bivariate Gaussian residual
rho12lane, defining the response-specific mean and scale DGP, residual covariance matrix, response-scalerho12grids, and boundary diagnostics while keeping group-levelcorpairs(), structured correlations, known sampling covariance, random effects inrho12, mixed-response families, and bivariate random-slope covariance in separate design or failure-ledger lanes. - Broader bivariate random-slope combination boundaries now have focused error coverage for unsupported residual-scale slope variants, cross-response or coefficient-mismatched same-response location-scale slope combinations, and all-four q=8-style slope requests while the matching q2
sigma1/sigma2scale-slope route is fitted separately. - Structured random-slope boundaries now have parser and fit-time audit coverage: one-slope
animal()andrelmat()markers are readable as planned grammar, and multiple structured slopes are rejected. Only coordinate spatial Gaussianmuone-slope models are fitted for Phase 18 admission. - Shape and inflation random-effect boundaries now have random-slope-specific test coverage: Student-t
nu, zero-inflationzi, hurdlehu, and planned bounded-responsezoi/coirandom slopes still error before fitting, so Phase 18 will not treat those paths as implemented. - Gaussian
sigmarandom-effect documentation now states the independent residual-scale slope boundary more explicitly: separate terms such assigma ~ z + (0 + w_id | id) + (0 + w_site | site)are fitted with directlog_sd_sigmaprofile targets. Historical note, superseded by the current 0.6.0 guidance: unlabelled ordinary correlated blocks such as(1 + x | id)are now fitted; labelled residual-scale slope covariance remains planned. - Ordinary Gaussian
murandom-slope documentation now states the q > 2 boundary more explicitly: multi-slope blocks such as(1 + x1 + x2 + x3 | id)are fitted, their SDs are direct profile targets, and their block correlations are derived-unavailable for direct profile intervals until a dedicated interval method exists. - Phase 18 now has a pre-simulation capability audit table that records implemented, tested, planned, and unsupported status for Gaussian, non-Gaussian, shape, inflation, bivariate, random-slope, meta-analysis, phylogenetic, spatial, animal, and
relmat()model classes before broad simulation grids admit them. - Phase 18 now has an optional resumable replicate runner under
inst/sim/that captures warnings, errors, elapsed time, session metadata, and optional RDS output for pilot simulation cells. - Phase 18 now has a Simulation & Comparison plot-grammar article for bias, RMSE, coverage, power, convergence, runtime, and warning/error ledgers across continuous, proportion, count, and meta-analysis examples.
-
plot_corpairs()now has alabelargument so publication figures can use short row labels while keeping full correlation metadata in the source table. - Phase 18 replicate results can now be reduced to a warning/error failure ledger so failed fits and warning-bearing replicates remain visible beside aggregate summaries.
- Phase 18 saved replicate directories can now be reloaded into result lists, allowing manifests and failure ledgers to be rebuilt from RDS output after a resumable simulation run.
- Phase 18 simulation results can now be reduced to a compact manifest table with cell id, replicate, seed, status, skipped/resumed flag, warning count, error message, and elapsed time.
- Phase 18 summary-smoke helpers now return run manifests and warning/error ledgers beside aggregate bias, RMSE, and MCSE tables.
- Developer design notes now include ASReml efficiency lessons for future
animal()andrelmat()work, emphasizing sparse precision matrices, explicit row-name matching, matrix-orientation metadata, and honest speed claims. -
nbinom2()now supports ordinary non-zero-inflatedmurandom intercepts and independent numeric random slopes such asbf(count ~ x + (1 | id) + (0 + x | id), sigma ~ z). The fitted SDs appear insdpars$mu,random_effects$mu, and directprofile_targets()rows. Historical note, superseded by current 0.6.0 evidence: NB2 q1 structuredsigmaintercept-plus-one-slope routes for phylo/spatial/animal/relmat now have recovery-grade point-fit evidence, and one exact fixed-ziNB2mu ~ spatial()intercept is diagnostic-only. Correlated or labelled NB2muslopes, jointmu/sigmarandom effects, ordinary NB2sigmaslopes, structured sigma intervals/coverage or richer blocks, and zero-inflated NB2 random effects outside that exact diagnostic gate remain planned. - Phase 18 now includes a smoke simulation report template under
inst/sim/reports/, giving pilot surfaces a reader-facing structure for purpose, aggregate summaries, reader checks, and interpretation boundaries. - Phase 18 now has a Gaussian
muq=3 random-slope smoke surface underinst/sim/, covering seeded data generation,drmTMB()fitting for(1 + x1 + x2 | id), parameter summaries, aggregate output, manifests, and failure ledgers. - Phase 18 now has a Gaussian
sigmaindependent random-slope smoke surface underinst/sim/, covering seeded data generation,drmTMB()fitting forsigma ~ z + (0 + w | id), parameter summaries, aggregate output, manifests, and failure ledgers. - Phase 18 now has a structured-slope parity gate: coordinate spatial one-slope Gaussian
mumodels are fitted enough for focused smoke grids, while phylogenetic, animal, andrelmat()one-slope models remain planned until their implementation, diagnostics, profile targets, recovery tests, and biological examples exist. - Phase 18 now has a cross-distributional-parameter correlation gate: residual
rho12, constant fitted random-effect block correlations, predictor-dependent q=2corpair()routes, and known sampling covarianceVremain separate layers, while non-Gaussian, slope-level, shape, inflation, hurdle, one-inflation, andrho12random-effect covariance surfaces stay outside Wave A until focused gates close. - Phase 18 now has a coordinate spatial Gaussian
muone-slope smoke surface underinst/sim/, covering seeded data generation,drmTMB()fitting forspatial(1 + x | site, coords = coords), parameter summaries, aggregate output, manifests, and failure ledgers. - Phase 18 now has a non-zero-inflated Poisson
murandom-effect smoke surface underinst/sim/, covering seeded data generation,drmTMB()fitting for(1 | id) + (0 + x | id), parameter summaries, aggregate output, manifests, and failure ledgers. - Phase 18 non-zero-inflated Poisson
murandom-effect smoke output now includes Wald interval rows and coverage summaries for fixed log-mean coefficients, while random-effect SD rows remain visible as missing-SE interval rows until profile producers are attached. - Phase 18 non-zero-inflated Poisson
murandom-effect smoke output now includes direct profile-likelihood interval rows and coverage summaries for the fitted random-intercept and independent random-slope SD targets. - Phase 18 now has a non-zero-inflated NB2
murandom-effect smoke surface underinst/sim/, covering seeded data generation,drmTMB()fitting for(1 | id) + (0 + x | id)with fixed-effectsigma ~ zoverdispersion, parameter summaries, aggregate output, manifests, and failure ledgers. - Phase 18 non-zero-inflated NB2
murandom-effect smoke output now includes Wald interval rows and coverage summaries for fixed log-mean and log-overdispersion coefficients, while random-effect SD rows remain visible as missing-SE interval rows until profile producers are attached. - Phase 18 non-zero-inflated NB2
murandom-effect smoke output now includes direct profile-likelihood interval rows and coverage summaries for the fitted random-intercept and independent random-slope SD targets. - NB2
murandom effects now have a focused weak-SD boundary diagnostic test, exercisingcheck_drm()lower-boundary reporting for a near-zero fitted random-intercept SD before larger Phase 18 grids vary the true SD. - Phase 18 Poisson and NB2
murandom-effect condition helpers now build true crossed condition grids, including random-effect SDs and, for NB2, overdispersion settings. - Phase 18 now has a paired count-family
murandom-effect pilot helper that combines ready Poisson and NB2 surfaces into one optional aggregate, manifest, failure-ledger, Wald-coverage, and profile-coverage output. - Phase 18 now has a plot-data helper for paired Poisson/NB2
murandom-effect pilot outputs, preparing aggregate, coverage, manifest, and failure tables for later figure-gallery work. - Phase 18 now has a count-pilot figure-gallery report template for bias, RMSE, interval coverage, manifests, and warning/error ledgers from paired Poisson/NB2
murandom-effect pilots. - Phase 18 now has count-pilot gallery helper plumbing that writes plot-ready CSV inputs and renders a checked local HTML gallery artifact from a paired Poisson/NB2
murandom-effect pilot object. - Phase 18 now has an end-to-end count-gallery smoke runner that executes a tiny paired Poisson/NB2
murandom-effect pilot and renders the Florence-facing HTML gallery from the resulting tables. - The Phase 18 count-pilot gallery now has a first Florence visual-polish pass, with horizontal estimand labels, shared palette/theme helpers, captions, and MCSE-aware coverage ranges when available.
- The figure gallery now has a Florence visual-repair pass: inference summaries render as Confidence Eye displays where finite interval bounds are available, tutorial plots share explicit palettes, discrete comparison and empirical marginal displays no longer fall back to default black styling, status-strip labels have better contrast, and simulation coverage/power examples show replicate-block proportions plus aggregate binomial MCSE intervals instead of treating simulation uncertainty as required Confidence Eyes.
- The Simulation & Comparison plot-grammar article now carries the raincloud lesson into the Phase 18 simulation lane: bias displays show replicate-level errors plus mean/MCSE intervals in fixed surface facets, while RMSE keeps a separate aggregate point/MCSE panel instead of being visually collapsed with signed bias or mistaken for a mean absolute-error cloud.
- The Phase 18 count-pilot gallery now follows the same accuracy-display contract: bias and RMSE use fixed family facets, show MCSE intervals when available, and explain that replicate-error clouds require replicate-level output rather than aggregate CSVs alone.
- The figure gallery now keeps correlation layers visually separate, with faceted residual
rho12, ordinary group, and phylogeneticcorpairs()-style rows plus status-strip boundaries for structured-effect layers that were not yet fitted at the time of 0.1.3. - The figure gallery now includes a source-map table that maps each display to its fitted object or fixture, extractor or plotter, interval source, and current support boundary.
- The figure gallery now shows the supported fixed-effect univariate
muemmeansroute, including factor-conditioned and interaction grids, an empiricalmarginal_parameters()summary, and unsupported boundaries for non-muor blockedemmeanstargets. - The figure gallery now separates residual
sigma, ordinary group-level SDs, conditional random-slope deviations, and fittedsd(site)surfaces, with unavailable random-effect SD intervals shown as an explicit plotting boundary. - The visualization grammar now records the Florence closeout:
plot_parameter_surface()andplot_corpairs()remain the exported helpers, most gallery-specific displays stay asggplot2recipes, and simulation or failure-ledger helpers wait for stable Phase 18 result schemas. - The figure gallery now includes distributional-parameter panels for
mu,sigma, Student-tnu, zero-inflation probabilityzi, and residualrho12, with explicit response-scale labels and interval provenance. - The pkgdown site now includes a user-facing figure gallery for model interpretation plots, confidence bands, correlation displays, random-effect scale surfaces, and simulation operating-characteristic figures.
- The pkgdown site now includes an improving-convergence guide explaining when the default optimizer budget is enough, how to use
drm_control(optimizer = ...), how to interpretcheck_drm()rows, and when to separate optimization from Wald uncertainty withse = FALSE. The guide now also separates residualrho12, phylogenetic mean-mean, and ordinary group-level correlation boundaries for bivariate structured fits, and warns that larger data sets help only when they add information that separates those covariance layers. - Phase 18 now has a pre-simulation readiness matrix that separates fitted, smoke-tested, interval-ready, weak-boundary-tested, planned, and blocked surfaces before broad simulation reports are written.
- Phase 18 now has a
meta_V(V = V)summary-smoke runner that executes vector and dense known-covariance pilot replicates and returns grouped bias, RMSE, and Monte Carlo error summaries. - Phase 18 now has a Gaussian location-scale summary-smoke runner that executes two or more pilot replicates and returns grouped bias, RMSE, and Monte Carlo error summaries from the smoke output.
- Phase 18 now has Monte Carlo uncertainty helpers for simulation summaries, including MCSEs for mean error, RMSE, proportions, and explicit interval-coverage summaries when lower and upper interval columns are present.
- Phase 18 now has a synthetic interval-coverage smoke helper for testing coverage-table plumbing before Wald, profile, or bootstrap interval methods are attached.
- Phase 18 smoke reports can now display optional aggregate, manifest, and warning/error ledger CSVs while still rendering when those files are not supplied.
- Phase 18 smoke report rendering is now covered by a skip-aware test with tiny aggregate, manifest, and warning/error ledger CSV fixtures.
- Phase 18 interval work now has a producer contract for Wald, profile, and bootstrap interval tables, including reported scale, method, status, and correlation-scale rules.
- Phase 18 now has a Fisher-z back-transformed Wald interval helper for correlation summaries, complementing raw-correlation Wald intervals from the generic helper.
- Phase 18 now has a generic Wald interval-table helper for parameter summaries that already contain estimates and standard errors, recording interval method, reported scale, status, and failure messages.
- Phase 18 now has a small aggregation helper for simulation parameter summaries, reporting replicate counts, bias, RMSE, absolute error, empirical standard error, convergence rate, Hessian rate, warning rate, and elapsed time by explicit grouping columns.
- Phase 18 now has a first end-to-end
meta_V(V = V)smoke runner underinst/sim/run/, covering vector and dense known sampling covariance cells through DGP,drmTMB()fit, saved RDS output, and combined parameter summaries. - Phase 18
meta_V(V = V)pilot summaries now carry standard errors for estimatedmucoefficients and response-scale fitted residualsigma, while keeping known sampling covarianceVout of interval targets. - Phase 18
meta_V(V = V)summary-smoke output now includes Wald interval rows and coverage summaries for estimatedmucoefficients and fitted residualsigma. - Phase 18 now has a first end-to-end Gaussian location-scale smoke runner under
inst/sim/run/, wiring the cell registry, seeded DGP,drmTMB()fit, pilot summariser, saved RDS output, and combined parameter table for one small surface. - Phase 18 Gaussian location-scale pilot summaries now carry fixed-effect standard errors when the fitted model exposes them, preparing that surface for real Wald interval coverage checks.
- Phase 18 Gaussian location-scale summary-smoke output now includes formula-coefficient Wald interval rows and coverage summaries.
- Phase 18 now has a Gaussian meta-analysis
meta_V(V = V)simulation pilot covering vector and dense known sampling covariance, including smoke tests that keep knownVout of interval targets. - Phase 18 now has a Gaussian location-scale simulation pilot: optional
inst/sim/helpers generatemu ~ x,sigma ~ zdata and summarise one fitted model into a truth/estimate/error table. - Phase 18 now has an optional
inst/sim/skeleton with reproducible seed-table and cell-registry helpers plus a CRAN-safe smoke test for simulation-run bookkeeping. - Phase 18 now has an ADEMP-style simulation-programme blueprint in
docs/design/41-phase-18-simulation-programme.md, including first-wave surfaces, estimands, methods, performance measures with Monte Carlo uncertainty, and the next three implementation slices. - The meta-analysis tutorial and design examples now use
meta_V(V = V)as the preferred known sampling covariance spelling, withmeta_known_V(V = V)described only as a compatibility alias. -
meta_V()interval safety is now tested for Gaussian meta-analysis fits:profile_targets()keeps estimatedsigma, random-effect SD, and bivariaterho12targets visible while never treating known sampling covarianceVas an estimated confidence-interval target. -
meta_V()now gives a clearer reserved-boundary error for proportional sampling-variance arguments such asmeta_V(w = w, scale = "proportional"),meta_V(w = w), ormeta_V(V = V, scale = "exact"). Diagonal/vectormeta_V(V = V)can still use ordinary likelihood weights, while full matrix-Vfits reject non-unit weights until joint-block weighting has a separate design. -
meta_V(V = V)is now accepted as the preferred additive known sampling covariance marker for Gaussian meta-analysis, routing to the same likelihood path asmeta_known_V(V = V). The proportional branchmeta_V(w = w, scale = "proportional")remains deliberately unimplemented and errors before fitting. - Slice 204 now records the
meta_V()API decision: the preferred additive known-covariance spelling ismeta_V(V = V), without a positional response/value argument, andmeta_known_V(V = V)is retained as a compatibility alias rather than a separate likelihood path. - Slice 203 now records the post-202 Phase 17 return block for meta-analysis hardening. The next targets are the preferred
meta_V(V = V)spelling and compatibility story, additive vector/matrix knownV, proportional-variance design boundaries, interval safety, and reader examples. - The Slice 202 pre-simulation gate now keeps broad Phase 18 comprehensive simulation closed until the post-202 Phase 17 hardening block is complete. A narrow Poisson
murandom-effect pilot simulation is allowed, but meta-analysis hardening aroundmeta_V()/knownV, interval safety, and reader-facing examples should come before broad simulation claims. - Focused Poisson random-effect recovery added a factor-predictor random-intercept case and a weak-SD boundary case. Historical note, superseded by later NB2, ordinal, and exact row-specific structured/component gates: this entry establishes only the ordinary Poisson
mupath and does not define the current class-wide boundary. - The validation-debt register now contains a Slice 201 non-Gaussian failure ledger. It names the convergence, boundary, identifiability, interval, and runtime risks that Phase 18 should measure or exclude before broad simulation claims are made.
-
animal()andrelmat()are now exported and documented as planned structured-effect markers, giving the reference index the intended animal -> phylo -> spatial -> lower-level known-dependence path while keepinggr()as a reserved legacy marker. These markers are parsed for roadmap examples and rejected bydrmTMB()until fitted likelihood, diagnostics, profile-target, and recovery-test evidence exists (#147). -
summary(conf.int = TRUE)now handles fitted non-Gaussian models whose summary has no parameter rows to receive intervals, including cumulative-logit ordinal models. Wald fixed-effect intervals are still reported where fixed effects exist, and empty coefficient or parameter tables keep explicit interval-status columns instead of erroring. - The model map, family chooser, and structural-dependence article now teach the structural-dependence ladder in biological order:
animal(),phylo(),spatial(), combined phylogenetic-plus-spatial models, and lower-levelrelmat()known-dependence matrices. The same pages keep the non-Gaussian random-effect boundary visible before the comprehensive simulation phase. - Shape random effects now have a dedicated unsupported-boundary message and Student-t test gate. Current Student-t
nuformulas remain fixed-effect tail-shape models outside the exact Q-Seriesnu ~ phylo(1 | id, tree = tree)local-fit gate; skew-normal fixed-effectnumodels residual slant, while skew-normal and skew-t shape random effects need separate likelihood recovery beforenu/taurandom effects or ID-levelskew(id) ~ xstyle models are added. - Poisson
munow supports ordinary unlabelled random intercepts and independent numeric random slopes for non-zero-inflated Poisson models, such as(1 | group)and(0 + x | group)on the log-mean predictor. The fitted SDs appear insdpars$mu,ranef()/random_effects$mu, andprofile_targets()as directlog_sd_mutargets; correlated Poisson random-slope blocks, labelled covariance blocks, zero-inflated Poisson random effects, and cross-parameter non-Gaussian covariance remain planned. - Non-Gaussian
sigmarandom effects have family-specific gates. Ordinary NB2, lognormal, and Gamma admit one independent log-sigmarandom intercept; Student-t, beta, beta-binomial, truncated NB2, and hurdle NB2 remain fixed-effect only. Slopes, labelled or combined scale effects, and structured scale effects still require likelihood, recovery, extractor, interval, and documentation evidence before fitting. - Bivariate random-slope boundary errors now distinguish the fitted slope-only
mu1/mu2target, the fitted matching q=2sigma1/sigma2scale-slope target, the fitted same-response q2mu/sigmaslope target, the smoke-artifact-routed q=4 and q=6 location-only targets, the diagnostic-artifact-routed first q8 all-endpoint target, and broader p8/q8 endpoint variants that remain closed. - Gaussian location random-slope blocks now support ordinary unstructured numeric multi-slope
muterms such as(1 + x1 + x2 | id)and labelled variants. The first public path has q=3 recovery,sdpars$mu,corpars$re_cov,corpairs(),summary(), andprofile_targets()coverage; larger q blocks are advanced fits whose sample-size cost remains a simulation target. - Gaussian location-scale models now fit more than one independent matched labelled
mu/sigmarandom-intercept covariance block, for example matching(1 | p | id)and(1 | q | site)terms in both formulas. Each block reports its owncorpars$mu_sigma,corpairs(class = "mean-scale"),summary(), andprofile_targets()row. -
check_drm()and profile-interval tests now cover two independent univariatemu/sigmarandom-intercept covariance blocks, reporting one diagnostic row per mean-scale block and confirming the secondeta_cor_mu_sigmaprofile target. - Gaussian residual-scale random slopes now have an explicit multiple-independent-term boundary:
sigma ~ z + (1 | id) + (0 + w1 | id) + (0 + w2 | id)fits separate log-sigmarandom-effect SDs with correlations fixed at zero. Historical note, superseded by the current 0.6.0 guidance: unlabelled ordinary correlated blocks such as(1 + x | id)and multi-slope variants are now fitted; labelled residual-scale slope covariance and cross-formulamu-sigmaslope covariance remain planned. - The earlier phylogenetic random-slope boundary was superseded by the structured-slope parity slices:
phylo(1 + x | species, tree = tree)now fits one univariate Gaussianmuslope as an independent intercept and slope field. Historical note, superseded again by the current 0.6.0 guidance: the exact q1 phylogeneticsigmaone-slope route is fitted and inference-ready with caveats; additional multiple or labelled phylogenetic-slope layouts outside the exact fitted ledger cells and structured slope correlations remain planned. - Random-effect planning now includes a one-slope-per-layer gate before the non-Gaussian revisit, separating fitted ordinary Gaussian
mu, Gaussiansigma, univariate mean-scale, bivariate intercept, phylogenetic intercept, and coordinate-spatial one-slope surfaces from the remaining Gaussian double-hierarchical limits. - Spatial one-slope coverage now confirms a profile-likelihood interval for the coordinate-spatial
muslope-field SD. Historical note, superseded by the current 0.6.0 guidance: the q1 spatialsigmaone-slope route now has point-fit/extractor evidence, but its interval gate remains blocked; additional multiple or labelled spatial-slope layouts outside the exact fitted ledger cells and spatial slope correlations remain planned. - The double-hierarchical endpoint map now reflects the current Gaussian boundary after the random-slope gate: q > 2 ordinary
mu, independentsigmaslopes, multiple univariate mean-scale intercept blocks, coordinate-spatial one-slope support, matching bivariate q=4/q=6 location smoke routes, the matching bivariate q=2 scale-slope route, the first same-response q2mu/sigmaslope route, and the first q8 all-endpoint route are fitted, while q8 coverage/power evidence and spatial q=4 covariance surfaces remain planned. - Non-Gaussian random-effect planning now has a first
murandom-intercept gate: Poisson and NB2-style count likelihoods are the first candidates, while continuous, bounded, ordinal, zero-inflation, hurdle, shape, and structured non-Gaussian random-effect paths keep explicit unsupported messages until their recovery tests exist. -
emmeans::emmeans()now supports the first narrowdrmTMBpath: fixed-effect univariatemuestimated marginal means with retained model frames and fixed-effect covariance available. Genericemmeanspairwise contrasts on that returnedmugrid are covered by a small parity test. - The public
emmeans::emmeans()boundary tests now confirm that transformed-response formulas such aslog(y) ~ xerror before anemmGridis returned, keeping the first bridge limited to untransformed response formulas and explicit transformed-scale prediction tables throughprediction_grid(). - The public
emmeans::emmeans()boundary tests now confirm that bivariate Gaussian fits error with the unsupported"biv_gaussian"model type before anemmGridis returned, instead of falling through to a generic missing-mumessage. - The public
emmeans::emmeans()boundary tests now confirm that cumulative-logit ordinal fits still error before anemmGridis returned, with guidance towardprediction_grid()andpredict_parameters()for explicit prediction tables. - The public
emmeans::emmeans()boundary tests now confirm that hurdle NB2 fits still error before anemmGridis returned, with guidance towardprediction_grid()andpredict_parameters()for explicit prediction tables. - The public
emmeans::emmeans()boundary tests now confirm that zero-inflated NB2 fits error with the unsupported"zi_nbinom2"model type before anemmGridis returned, matching the existing zero-inflated Poisson boundary. - The public
emmeans::emmeans()boundary tests now confirm that zero-inflated Poisson fits still error before anemmGridis returned, with guidance towardprediction_grid()andpredict_parameters()for explicit prediction tables. - The fixed-effect univariate
muemmeans::emmeans()path now explicitly checks thetype = "response"argument path, so response-scale EMMs requested directly fromemmeans()must matchpredict(dpar = "mu", type = "response"). - Fixed-effect prediction matrices and the first univariate
muemmeans::emmeans()bridge now preserve fitted ordered-factor coding whennewdataor anemmeansreference grid supplies the same levels as an ordinary factor, so ordered polynomial columns still align with fitted coefficients. - Fixed-effect prediction matrices now accept character
newdatavalues for fitted factor levels, ignore unused factor columns, and reject unknown or missing factor levels with a clear predictor-specific error before model-matrix construction. - Fixed-effect prediction matrices now validate that
newdatasupplies every predictor required by the requested distributional parameter and that required predictor values are complete before model-matrix construction. - Fixed-effect prediction matrices now reject non-finite numeric values such as
Infin required predictors before model-matrix construction. - Fixed-effect prediction matrices now reject
newdatavalues that produce non-finite transformed-predictor columns, such aslog(size)whensize = 0, before returning a non-finite prediction. -
marginal_parameters()andpredict_parameters()now have explicit coverage for fitted random-effect scale model names such assd(id), returning therandom-effect-sd-modelcomponent, preserving row labels in long prediction tables, and averaging supplied direct-SD rows in marginal summaries. -
prediction_grid()now has explicit integration coverage for fitted direct-SD predictors: grids over predictors such aswinsd(id) ~ wcan feedpredict_parameters(..., dpar = "sd(id)")andmarginal_parameters(..., by = "w"). - Random-effect scale predictions now accept character
newdatavalues for fittedsd(group)factor levels and reject unknown levels with a predictor-specific error before random-effect scale model-matrix construction. - Random-effect scale predictions now have explicit boundary coverage for
newdatacontainers: non-data-frame inputs error, while zero-row data frames return named length-zero numeric vectors on both link and response scales. - Random-effect scale predictions now have explicit coverage that multi-row
newdatareturns one value per supplied row, preservesrownames(newdata), uses response scale by default, and matchesexp(link)when compared withtype = "link". - Random-effect scale predictions now have explicit multiple-target coverage: when a fit includes formulas such as
sd(id) ~ w_idandsd(site) ~ w_site, each requesteddparvalidates its own required predictors, ignores sibling-target extras, and names the missing target-specific predictor. - Random-effect scale predictions now validate the raw predictors required by
sd(group)formulas in suppliednewdata, so missing columns, missing values, and non-finite numeric values error before random-effect scale model-matrix construction. - Random-effect scale predictions such as
predict(fit, dpar = "sd(id)", newdata = ...)now rejectnewdatavalues that produce non-finite transformed-predictor columns, such aslog(w_pos)whenw_pos = 0, before returning an infinite link- or response-scale SD prediction. - The fixed-effect univariate
muemmeans::emmeans()path now explicitly checks factor-conditioned reference grids such asemmeans(fit, ~ habitat | season, at = list(x = 0.25)), so conditional EMM rows must matchpredict(dpar = "mu")with the same factor levels. - The fixed-effect univariate
muemmeans::emmeans()path now explicitly checks interaction formulas such ashabitat * xon an explicit reference grid, so conditional EMMs must matchpredict(dpar = "mu")at the same interaction design point. - The fixed-effect univariate
muemmeans::emmeans()path now explicitly checks multiple numericatvalues, so conditional grids such asemmeans(fit, ~ habitat | x, at = list(x = c(-0.25, 0.75)))must match row-wisepredict(dpar = "mu")on the same grid. - The fixed-effect univariate
muemmeans::emmeans()path now explicitly checkscov.reduce = FALSE, so EMMs that average over unreduced numeric covariate levels must matchpredict(dpar = "mu")averaged over the same reference grid. - The fixed-effect univariate
muemmeans::emmeans()path now explicitly checks custom numeric covariate reduction, socov.reduce = stats::medianmust move the reference grid tomedian(x)rather than the default mean. - The fixed-effect univariate
muemmeans::emmeans()path now explicitly checks the default numeric covariate-reduction rule, soemmeans(fit, ~ habitat)must matchpredict(dpar = "mu")at the mean of the numeric covariate used by the reference grid. - The fixed-effect univariate
muemmeans::emmeans()path now has explicit parity coverage for formulas withoffset(log(exposure)), so exposure-adjusted count-rate grids must matchpredict(dpar = "mu")on both link and response scales. - The fixed-effect univariate
muemmeans::emmeans()path now has explicit recover-data coverage for transformed predictors such aslog(size), so reference grids supplied throughatare checked againstpredict(dpar = "mu"). - Bivariate, zero-inflated, hurdle, ordinal expected-score, random-effect, structured-effect, non-
mu, slope, and interval-specializedemmeanstargets still error before anemmGridis returned. - The model-workflow article now shows the first optional
emmeans::emmeans()example for fixed-effect univariatemu, keeping adjusted means separate frompredict_parameters()tables and from unsupportedsigma, random-effect, bivariate, zero-inflated, hurdle, ordinal, and slope workflows. Broader drmTMB-specific contrast helpers remain a separate future contract. - The model-workflow article now shows how to build an explicit
prediction_grid()for a fitted random-effect scale model such assd(site) ~ reef_cover, then pass that grid throughpredict_parameters(..., dpar = "sd(site)")andmarginal_parameters(..., by = "reef_cover")without treating random-effect SDs as residualsigmaor raw responses. - The model-map article now routes fitted random-effect SD surfaces through
prediction_grid(),predict_parameters(..., dpar = "sd(group)"), andmarginal_parameters(), with therandom-effect-sd-modelcomponent kept separate from residualsigma. -
predict_parameters(conf.int = TRUE)now adds Wald fixed-effect confidence intervals for suppliednewdatagrids when the requested distributional parameter has an ordinary fixed-effect basis. The table fillsstd.error,conf.low,conf.high,conf.level,conf.status = "wald", andinterval_source = "wald"for supported rows, while fitted-row requests and direct random-effect scale models keep explicit unavailable interval status. - Installation docs now point tagged-preview users to
pak::pak("itchyshin/drmTMB@v0.1.2"). -
docs/design/39-visualization-grammar.mdnow records the Phase 17 visualization and marginal-effects research contract. The note usesggplot2,tidybayes,ggdist,emmeans,ggeffects,marginaleffects, diagnostic plotting packages, and figure-composition tools as design sources while keepingdrmTMBdata-first and dependency-light. The model-workflow article now states thatpredict_parameters()andmarginal_parameters()are data tables that plotting helpers can consume, not plotters themselves. -
plot_corpairs()now provides the first optionalggplot2display for explicitcorpairs()tables. It draws one point per fitted correlation row, adds interval segments only when finiteconf.lowandconf.highbounds have supported interval provenance, can facet by a supplied table column such aslevel, and keeps correlationlevel,class, display interval status, and interval source attached to the plotted data. -
plot_parameter_surface()now provides the first optionalggplot2plotting helper for long tables returned bypredict_parameters(). It plots existing point estimates, keeps interval provenance columns attached to the data, and leaves EMMs, contrasts, and slope plots for later tested helpers. -
plot_parameter_surface()now draws confidence bands for continuous x-values and interval bars for discrete x-values when the supplied table already contains finiteconf.lowandconf.highbounds with realconf.statusandinterval_sourceprovenance. It still does not compute confidence intervals, and rows withinterval_source = "not_available"remain visibly interval-free. - The model-workflow and model-map articles now show prediction-surface confidence bands as a table-first workflow:
prediction_grid()->predict_parameters(conf.int = TRUE)->plot_parameter_surface(), withconf.status,conf.level, andinterval_sourceleft visible. -
plot_parameter_surface()now labels single-parameter panels with the fitted distributional parameter and prediction scale, such assigma estimate (response scale), while keeping the genericEstimatelabel when multiple parameters are plotted together. -
prediction_grid()now builds explicitnewdatagrids forpredict_parameters()andmarginal_parameters(). The first contract supports focal predictors, supplied values, conditioned nuisance predictors, mean-reference grids, and empirical counterfactual grids while recording the grid rule as metadata. - The bivariate-coscale tutorial now shows a fitted
corpairs()table flowing intoplot_corpairs(..., facet = "level"), separating residualrho12from group-level correlation rows in the displayed workflow. -
docs/design/39-visualization-grammar.mdnow records the pre-export contract thatplot_corpairs()follows: consume explicitcorpairs()tables, keep correlation levels/classes visible, draw intervals only from finite confidence bounds with supported provenance, and test residual, ordinary group-level, phylogenetic, derived-unavailable, empty-table, and missing-ggplot2cases before export. - The model-map article now includes a Phase 17 visualization decision table that routes raw responses, fitted parameter surfaces, empirical marginal summaries, correlations, interval tables, and diagnostics to the current data helpers before readers choose a plotting style.
- The Reference index now makes the post-fit path explicit: fitting, checking, summaries, predictions, uncertainty, and extractors are grouped under “Model fitting and post-fit tools”, while exported plotting helpers appear under “Visualization”. The current exported plotting helpers are
plot_parameter_surface()andplot_corpairs(). -
predict_parameters()andmarginal_parameters()now include interval provenance columns. The first contract reportsconf.status = "not_requested"andinterval_source = "not_available"so downstream tables and future plots cannot imply confidence intervals that were not computed. -
confint(),summary(), andcorpairs()originally rejected bootstrap interval methods while the simulate-refit contract was still untested. That boundary is now superseded forconfint(..., method = "bootstrap")on selected direct fitted-object targets;method = "parametric_bootstrap"and bootstrap routing throughsummary()orcorpairs()still fail explicitly. -
summary()now reports delta-method standard errors for direct response-scale parameter rows, including constantsigma, residualrho12, random-effect SDs, and random-effect correlations, whenTMB::sdreport()succeeds. Descriptive fitted ranges and derived variance ratios keep missing standard errors. This release originally recommended profile likelihood broadly for fitted SD and correlation targets; the cell-specific 0.6.0 guidance above supersedes that blanket recommendation. -
summary()profile summaries now keep fixed-effect Wald 95% confidence intervals while adding profile-likelihood 95% confidence intervals for selected direct targets such assigma. Printed parameter tables no longer show duplicatedminimumandmaximumcolumns for constant direct parameters where those values equal the estimate. - The model-workflow article now includes a compact guide to reading ordinary
summary()output. The guide mapscoefficients,parameters,covariance,derived, andconfintcomponents to the interpretation task and then points readers tofixef(),sigma(),rho12(),ranef(),corpairs(), andprofile_targets()when they need more detail. - The model-workflow article now shows empirical marginalization with
prediction_grid(..., margin = "empirical")andmarginal_parameters(..., by = "temperature"), separating conditioned prediction rows from averages over the fitted-row covariate distribution. - The model-workflow article now adds raw-data-plus-model display rules for Phase 17: show observed responses on the observed-response scale, draw fitted
muandsigmasurfaces from an explicitpredict_parameters()table, keep interval provenance visible, and do not place raw response points onsigma,sigma^2,rho12, random-effect SD, or correlation axes. - The Gaussian location-scale tutorial now includes a response-scale interpretation ladder for fixed mean slopes, residual-SD and residual-variance ratios, random-slope SDs, residual-scale random-slope SDs, and
sd(group)slopes. It also adds a trait-named parrot beak-length equation block definingmu,sigma, body mass, forest habitat, and scale coefficients before the worked growth example. The worked growth example showsprofile_targets(fit_growth)and a compact fitted translation table so readers can report mean growth, predictability, and among-group variation on the correct scale. - The phylogenetic-spatial tutorial is now framed as a structural-dependence route: first phylogeny, then coordinate spatial dependence, then the planned phylogeny-plus-spatial endpoint. The article defines the conceptual combined equation, names the phylogenetic and spatial SDs, and keeps simultaneous
phylo()plusspatial()syntax marked as planned until multiple structuralmulayers have implementation and identifiability checks.
drmTMB 0.1.1 (2026-05-10)
-
docs/design/34-validation-debt-register.mdnow backs the stable-core matrix with an evidence and debt ledger. Each advertised surface is marked as covered, partial, opt-in, or blocked, with tests, diagnostics, interval status, docs, and explicit debt recorded before the project expands the surface. - README and the “What can I fit today?” model-map article now include a stable-core feature matrix. The matrix separates stable fitted surfaces, first-slice implementations, opt-in large-data controls, and planned or rejected neighbouring syntax, with interval and diagnostic status attached to each row.
-
check_drm()now reports full-matrixmeta_known_V(V = V)fits as dense known-covariance notes with retained dimension, storage, density, size, rank, and conditioning, making clear that dense known covariance is a small-to-moderate path until sparse or block-sparseVstorage has implementation and benchmark evidence. -
confint()profile rows now include lightweight profile diagnostics throughprofile.boundaryandprofile.message. Successful intervals currently report"ok"unless transformed SD intervals are close to zero or transformed correlation intervals are close to the correlation boundary; profile failure messages now explicitly point to boundary, one-sided, non-monotone, or failed-inner-optimization profiles as possible causes. -
confint()andsummary()now use an explicitconf.statuscolumn for interval output. Successfulconfint()rows reportconf.status = "wald"or"profile", whilesummary(conf.int = TRUE)marks parameter rows that neednewdata, are derived-only, are ready but not selected in the current call, or are unavailable for Wald intervals. -
summary()andprofile_targets()now expose the first derived variance-ratio summaries without claiming derived confidence intervals. Simple Gaussian random-intercept repeatability and univariate phylogenetic signal appear as point-estimate rows withtarget_type = "derived",transformation = "variance_ratio", andprofile_note = "derived_target". When intervals are requested, these rows reportderived_interval_unavailable;confint(..., method = "profile")fails before launching an unsupported derived profile. - Direct profile-likelihood intervals for random-effect SDs and correlations now have focused Slice 55 coverage across the currently fitted ordinary, phylogenetic, and coordinate-spatial surfaces. The tests verify the first spatial
sd:mu:spatial(1 | site)interval, ordinary and phylogenetic constantcorpairs(conf.int = TRUE)rows, bivariate phylogenetic SD and mean-mean correlation targets insummary(conf.int = TRUE, method = "profile"), and the continued separation of derived covariance intervals from direct SD/correlation intervals. - Row-specific profile-likelihood intervals now have focused coverage for response-scale
sigma,sigma1,sigma2, residualrho12, and fitted q=2 ordinary or phylogeneticcorpair()values supplied throughnewdata. The tests verify multi-row bivariate scale intervals, fitted latent-correlation intervals for both ordinary and phylogenetic q=2corpair()routes, and early errors for ambiguousnewdatarequests such as multipleparmvalues, non-data-frame inputs, or empty grids. -
profile_targets()now treats its returned table as a tested namespace contract. Target rows use controlledtarget_type,profile_ready,profile_note, andtransformationvalues, and memory-light fits created withdrm_control(keep_tmb_object = FALSE)now keep listing direct target names while marking them withprofile_note = "tmb_object_required"instead of implying that direct profile intervals can be run. -
confint()now wraps directTMB::tmbprofile()calls with clearer target-specific errors. Users can still tune profile controls such asystep,ytol, andparm.range, butdrmTMBnow blocks attempts to override the internalobj,name,lincomb, ortracearguments through...and reports theprofile_targets()name when profiling or profile-interval extraction fails. -
drm_control(se = FALSE)now skipsTMB::sdreport()while keeping optimized fits usable for coefficients, fitted values, residuals, prediction, simulation, log-likelihood, and profile-likelihood routes that retainfit$obj. Fits also survivesdreport()failure withfit$uncertainty$status = "failed", whilesummary(),vcov(), andcheck_drm()report the skipped or failed uncertainty state explicitly. -
drm_control()now reserves future start, fixed-parameter map, fallback-optimizer, and multi-start control names so they cannot be silently passed tonlminb()through a plain optimizer list. Profile-likelihood calls also re-pin the TMB object to the selectedopt$parbefore profiling, keeping mutable TMB state aligned with the chosen optimum. -
drm_control(aggregate_gaussian = TRUE)now fits the first sufficient-statistic aggregation path for univariate Gaussian fixed-effect models. Repeated rows are grouped by processedmuandsigmadesign state, TMB evaluates the Gaussian likelihood withn,sum(y), andsum(y^2)cells, and fitted-row predictions and residuals remain one value per original model row. Random effects, direct-SD formulas, structured effects, known sampling covariance, bivariate models, non-Gaussian families, non-unit likelihood weights, and combined sparse fixed-effect matrices remain planned. -
drm_control(keep_model_frame = FALSE)now also drops nested model-frame caches for direct random-effect SD models and fitted q=2corpair()regression models after their model matrices and group metadata have been retained. This keeps the memory-light fitted-object path aligned withsd_phylo()and latent-correlation features. -
drm_control(sparse_fixed = TRUE)now fits the first sparse fixed-effect path for univariate Gaussianmufixed effects with intercept-onlysigma. The fitted object keeps themudesign as a sparseMatrix, prediction follows the fitted sparse flag, andcheck_drm()reports sparse fixed-effect design matrices; random effects, known covariance, phylogenetic or spatial terms, bivariate models, non-Gaussian models, and sparsesigmaremain planned. -
bench/large-phylo-location.Rnow recordsaggregate_gaussian, requested and fitted aggregation-cell counts, aggregation compression ratio, and largest aggregation cell size, and can run a non-phylogenetic aggregation smoke benchmark with--structured none --aggregate-gaussian true --aggregation-cells 100. -
bench/large-phylo-location.Rnow recordsstructuredandsparse_fixedsettings and can run a non-phylogenetic sparse fixed-effect smoke benchmark with--structured none --factor-heavy true --sparse-fixed true. -
check_drm()now includes the density of the largest retained fixed-effect design block in thefixed_effect_design_sizerow, making high-cardinality mostly-zero designs easier to distinguish from genuinely dense designs and confirming when a fitted object retains sparse fixed-effect matrices. - The optional
bench/large-phylo-location.Rbenchmark now records the largest retained fixed-effect design block, its column count, nonzero count, and density, andbench/summarize-results.Rincludes those fields when present. - Univariate Gaussian phylogenetic location models now support the Family B direct-SD formula
sd_phylo(species) ~ x_species. The implementation uses a non-centred unit phylogenetic base effect scaled at observed tips by species-level SD predictors, giving marginal tip covarianceD_tip A_tip D_tipwithout assigning predictors to internal tree nodes.coef(),predict(),sdpars, andprofile_targets()expose the fitted SD surface. - Bivariate Gaussian phylogenetic location models now support Family B direct-SD formulas
sd_phylo1(species) ~ x_speciesandsd_phylo2(species) ~ x_speciesfor matchingmu1andmu2phylogenetic location effects. The implementation keeps the latent phylogenetic mean-mean correlation constant, exposes response-specific species SD surfaces throughcoef(),predict(), andsdpars, and rejects mixtures with all-four q=4 phylogenetic location-scale blocks. -
biv_gaussian()now supports Family B direct location random-effect SD formulas for labelled bivariate location random intercepts:sd1(id) ~ x_grouptargets themu1random-effect SD andsd2(id) ~ x_grouptargets themu2random-effect SD. Predictors must be constant within the named group, and unsupported scale-random-effect SD names such assd_sigma1()/sd_sigma2()plus same-group q=4 Family A mixtures are rejected to avoid mixing direct SD models with scale-formula random effects. -
biv_gaussian()now supports the first predictor-dependent latent random-effect correlation models for q=2 location blocks. Ordinary grouped blocks usecorpair(id, level = "group", block = "p", from = "mu1", to = "mu2") ~ x_group; phylogenetic blocks usecorpair(species, level = "phylogenetic", block = "p", from = "mu1", to = "mu2") ~ ecologybeside matchingphylo(1 | p | species, tree = tree)terms. The fitted link-scale coefficients appear incoef(),summary(),vcov(), andprofile_targets(), whilecorpairs()reports the response-scale mean, range, and number of group/species correlation values. Predictors must be constant within group/species; location-scale, scale-scale, q=4, and spatialcorpair()regressions remain planned. - The fitted q=2 phylogenetic
corpair()route uses two independent unit phylogenetic fields with species-specific loadings. This gives a positive-definite nonstationary covariance model, preserves the same-species local correlation interpretation, and reduces to the existing constant bivariate phylogenetic covariance when the correlation predictor is constant. A CRAN-safe broad-trend recovery test now checks that a positive species-level correlation predictor recovers the ordering of fitted phylogenetic correlations without hitting the correlation guard. The first implementation target ismu1-mu2; phylogenetic location-scale and scale-scale correlation regressions remain q=4 extensions. - A new large-data workflow article documents current memory-light fit controls, practical post-fit output cautions, and the optional
bench/large-phylo-location.Rbenchmark harness for Gaussian phylogenetic location models. -
check_drm()now reports optimizer evaluation counts, dense fixed-effect design size, finite fixed-effect standard errors, near-boundary random-effect standard deviations, univariatemu/sigmamean-scale covariance diagnostics, bivariate same-responsemu/sigmadiagnostics, bivariatemu1/mu2andsigma1/sigma2random-intercept covariance diagnostics, ordinary q=4 bivariate location-scale covariance diagnostics, bivariate phylogeneticmu1/mu2covariance diagnostics, phylogenetic q=4 location-scale covariance diagnostics, coordinate-spatialmudiagnostics, and univariate or bivariatesd_phylo*()direct-SD surface diagnostics, helping users diagnose large, difficult, or weakly identified fits before interpreting estimates. -
biv_gaussian()now fits matching intercept-onlyphylo(1 | species, tree = tree)or labelledphylo(1 | p | species, tree = tree)terms inmu1andmu2as correlated phylogenetic location effects. It also fits the first matching labelled all-four phylogenetic q=4 block acrossmu1,mu2,sigma1, andsigma2, reporting four endpoint SDs and all six latent phylogenetic correlations while keeping residualrho12separate. Partial, unlabelled, mismatched, and slope phylogenetic q=4 forms remain rejected. -
profile_targets()lists the fitted-model target names that can be passed toconfint(), including whether each target is ready for direct profile-likelihood intervals. It distinguishes group-level covariance targets such ascor:mu_sigma:cor(mu:(Intercept),sigma:(Intercept) | p | id),cor:mu_sigma:cor(mu1:(Intercept),sigma1:(Intercept) | p | id),cor:mu:cor(mu1:(Intercept),mu2:(Intercept) | p | id),cor:sigma:cor(sigma1:(Intercept),sigma2:(Intercept) | p | id), andcor:phylo:cor(mu1:(Intercept),mu2:(Intercept) | phylo | species)from residualrho12. Ordinary q=4theta_re_covcorrelations and full phylogenetic q=4theta_phylocorrelations are listed as derived unstructured-correlation targets, while block-diagonal phylogenetic q=4 fallback fits expose direct constant block-correlation targets. -
confint()now returns Wald fixed-effect confidence intervals by default and can compute profile-likelihood intervals for explicit direct targets such asfixef:mu:x, constantsigma,sd:mu:(1 + x | id):(Intercept),sd:mu:phylo(1 | species),cor:mu:cor((Intercept),x | id), the first univariatemu/sigma, bivariatemu1/mu2, bivariatesigma1/sigma2, block-diagonal bivariate phylogeneticmu1/mu2andsigma1/sigma2random-effect correlations, and constant residualrho12. It also profiles row-specific response-scalesigma,sigma1,sigma2,rho12, and fitted q=2 ordinary or phylogeneticcorpair()values whennewdatais supplied. Full phylogenetic q=4 correlations are currently reported as derived targets, and direct fallback targets still need fit-specific profile diagnostics before being interpreted as usable intervals. -
corpairs()now acceptsconf.int = TRUEfor profile-likelihood correlation-pair intervals where the fitted target is profile-ready. Rows that are not interval-ready, such as predictor-dependent residualrho12summaries that neednewdataor derived q=4 unstructured-correlation rows, now carry an explicitconf.statusinstead of silently omitting bounds. -
biv_gaussian()now fits the first bivariate group-level covariance blocks: matching labelled random intercepts inmu1/mu2and insigma1/sigma2. The fitted group-level SDs appear insdpars$muorsdpars$sigma, the same-parameter random-intercept correlations appear incorpars$muorcorpars$sigmaandcorpairs(), and residualrho12remains a separate within-observation correlation. -
biv_gaussian()now fits same-response cross-parameter random-intercept covariance blocks, such as matching(1 | p | id)terms inmu1andsigma1, or a separate(1 | q | id)pair inmu2andsigma2. The fitted mean-scale correlations appear incorpars$mu_sigma,corpairs(), andprofile_targets(). -
biv_gaussian()now fits an intercept-only ordinary q=4 location-scale covariance block when the same labelled(1 | p | id)term appears inmu1,mu2,sigma1, andsigma2. The block estimates four group-level SDs and all six latent random-effect correlations while keeping residualrho12separate. -
corpairs()now acceptsgroupandblockfilters so users can directly subset fitted group-level covariance rows while keeping residualrho12rows separate. It also accepts location-class aliases such asclass = "location-location"andclass = "location-scale"for the existingmean-meanandmean-scalerows, matching the reservedcorpair()formula terminology without renaming current output. -
drm_control()is now exported and provides the first large-data storage controls fordrmTMB(): users can pass optimizer settings throughoptimizer = list(...), drop stored complete-case data withkeep_data = FALSE, drop stored model frames after fitting withkeep_model_frame = FALSE, and drop the retained TMB automatic-differentiation object withkeep_tmb_object = FALSE. -
drm_formula()now reserves explicit coefficient-specific random-effect SD syntax such assd(id, dpar = "mu", coef = "x1") ~ x_groupfor future random-slope scale models.drmTMB()rejects these formulas until the likelihood, covariance diagnostics, and simulation tests exist. -
drm_formula()now uses singular endpoint-specificcorpair(group, level = "...", block = "...", from = "mu1", to = "mu2") ~ xsyntax for predictor-dependent latent random-effect correlations. The first fitted paths are ordinary and phylogenetic q=2mu1/mu2; spatial, location-scale, scale-scale, and q=4 variants remain parsed or documented as later targets. Userho12 = ~ xfor residual correlation andcorpairs()to extract fitted latent correlations. -
drmTMB()now fits the first labelled cross-formula covariance block for univariate Gaussian location-scale models: matchingy ~ x + (1 | p | id)andsigma ~ z + (1 | p | id)random intercepts. The fitted mean-scale correlation appears incorpars$mu_sigmaandcorpairs(). - Gaussian residual-scale random slopes are now implemented for univariate Gaussian
sigmaformulas as independent terms such assigma ~ z + (0 + w | id). Historical note, superseded by the current 0.6.0 guidance: unlabelled ordinary correlated blocks such as(1 + x | id)are now fitted; labelled residual-scale slope covariance and cross-formulamu-sigmaslope covariance remain planned. - Installation docs now point tagged-preview users to
pak::pak("itchyshin/drmTMB@v0.1.1"). -
marginal_parameters()averages long-format distributional-parameter predictions over fitted rows or suppliednewdatagroups, providing the first simple marginalisation surface for mean, scale, shape, and residual-correlation summaries. -
nbinom2()and the zero-inflated, zero-truncated, and hurdle NB2 routes now share an internal count-kernel helper that avoids observed-count loops for large counts while preserving the small-overdispersion Poisson limit. Deterministic high-count tests compare the optimized objective against independentstats::dnbinom()calculations. - Developer documentation now includes a C++ modularization source map that identifies safe header-only helper extraction, hidden
model_typeprobe branches, required test gates, and the template pieces that should not move during the first refactor pass. - Phase 6d stable-core validation is locally closed with a stable-core feature matrix, validation-debt register, failure-safe
sdreport()controls, optimizer/start/map contract, dense covariance guardrails, count-kernel hardening, and a C++ modularization source map. GitHub Actions remains the PR-side gate. -
predict_parameters()returns long-format predictions for fitted distributional parameters such asmu,sigma,nu, andrho12, giving interpretation tables and future plotting or marginalisation helpers one shared data surface. -
summary()now reports a response-scale parameter table for fitted scale, shape, random-effect SD, and correlation quantities, with opt-in Wald or profile-likelihood confidence intervals throughconf.int = TRUE, including direct profile intervals for the first fitted group-level covariance rows. It also includes acovariancecomponent with fitted random-effect variance and covariance point summaries for currently fitted registry-backed covariance blocks and the first bivariate phylogeneticmu1/mu2mean-mean row; derived covariance intervals remain unavailable until a nonlinear interval method is implemented, and the covariance table marks that interval status explicitly.
drmTMB 0.1.0 (2026-05-10)
-
bf()now stores parsed formula entries for distributional parameters, including bivariaterho12, meta-analysismeta_known_V(V = V), and random-effect scale syntax. -
beta()now fits fixed-effect beta mean-scale models for strict continuous proportions in(0, 1), usinglogit(mu),log(sigma), and internal precisionphi = 1 / sigma^2;fitted()returnsmuandsigma(fit)returns the public scale parameter. -
beta_binomial()now fits fixed-effect beta-binomial mean-overdispersion models forcbind(successes, failures)responses, usinglogit(mu),log(sigma), and internal beta precisionphi = 1 / sigma^2.fitted()returns the success probabilitymu, andsigma(fit)returns the public extra-binomial variation scale. -
biv_gaussian()now fits fixed-effect bivariate Gaussian location-scale-coscale models with separatemu1,mu2,sigma1,sigma2, and predictor-dependentrho12formulas. -
check_drm()now provides a first-pass diagnostic table for optimizer convergence, fixed gradients, Hessian status, dropped rows, scale positivity,rho12boundaries, Student-tnuboundary behaviour, known sampling covariance summaries, random-effect replication, and weak random-slope design checks. -
corpairs()now returns a long table of fitted correlation pairs that already exist in adrmTMBfit, currently residual bivariaterho12summaries and ordinary group-levelmurandom-effect correlations. -
drm_formula()is now the primary formula constructor;bf()remains a short alias. -
drm_formula(mvbind(y1, y2) ~ x)is now implemented as shorthand for identical bivariate Gaussian location formulas, expanding internally tomu1 = y1 ~ xandmu2 = y2 ~ x. -
drmTMB()now fits Gaussian location-scale models with fixed effects, random intercepts, labelled random intercepts such as(1 | p | id), independent numeric random slopes, and ordinary labelled or unlabelled correlated random intercept-slope blocks in themuformula, such asbf(y ~ x1 + (1 | id) + (0 + x1 | id), sigma ~ x1),bf(y ~ x1 + (1 + x1 | id), sigma ~ x1), andbf(y ~ x1 + (1 + x1 | p | id), sigma ~ x1). -
cumulative_logit()now fits fixed-effect univariate ordinal location models for ordered responses, using ordered cutpoints,Pr(y_i <= k) = logit^-1(theta_k - mu_i), and a fixed latent logistic scale.fitted()returns the expected ordered-category score, and ordinal scale/discrimination formulas remain planned. -
drmTMB()now fits fixed-effect Gamma mean-CV models for positive responses withfamily = Gamma(link = "log"), wheremuis the response mean andsigmais the coefficient of variation. -
drmTMB()now fits fixed-effect Poisson mean models for count responses withfamily = poisson(link = "log"), including standard R exposure offsets in themuformula such ascount ~ habitat + offset(log(trap_nights)). The same family route supports fixed-effect zero-inflated Poisson models viazi ~ predictors, wheremuis the conditional Poisson mean,ziis the structural-zero probability, andfitted()returns(1 - zi) * mu. Overdispersion, random effects, known sampling covariance, and bivariate count models remain planned for this route. -
drmTMB()now supports a top-levelweights =argument for non-negative row log-likelihood multipliers, withweights(fit)returning the processed weights after model-row filtering. Known sampling variance or covariance remains separate and should usemeta_V(V = V), withmeta_known_V(V = V)as a compatibility alias. -
nbinom2()now fits fixed-effect negative-binomial 2 mean-dispersion models for overdispersed counts, withlog(mu),log(sigma), andVar(y) = mu + sigma^2 * mu^2. Themuformula supports standard R exposure offsets such ascount ~ habitat + offset(log(trap_nights)). Heresigmais an overdispersion scale, not a residual standard deviation or size parameter. The same family route supports fixed-effect zero-inflated NB2 models viazi ~ predictors. -
drmTMB()now acceptsfamily = c(gaussian(), gaussian())andfamily = list(gaussian(), gaussian()), routing both to the implemented bivariate Gaussian location-coscale likelihood. Mixed composed families such asc(gaussian(), poisson())remain planned and currently error clearly. - Gaussian residual-scale random intercepts are implemented in the
sigmaformula, for examplebf(y ~ x1 + (1 | id), sigma ~ x1 + (1 | id)). These model residual-scale heterogeneity and are distinct from random-effect scale formulae such assd(id) ~ x_group. - Gaussian random-effect scale formulae are implemented for one or more distinct unlabelled
murandom intercepts, for examplebf(y ~ x1 + (1 | id) + (1 | site), sigma ~ x2, sd(id) ~ x_group, sd(site) ~ site_type). Eachsd(group)predictor must be constant within the named group after missing-row filtering. - Gaussian known-covariance meta-analysis with
meta_known_V(V = V)is now covered by targeted validation when combined with random-effect scale formulae such assd(id) ~ x_group, using an independent dense marginal-likelihood comparator. - Gaussian
murandom-effect correlations from correlated blocks are exposed ascorpars$mu, keeping group-level labels such aspseparate from residual bivariaterho12. - Profile-likelihood confidence intervals are documented as a planned inference phase with an explicit target namespace, such as
sd:mu:(1 | id),cor:mu:cor((Intercept),x | id), andfixef:rho12:(Intercept), plus boundary flags and nonlinear derived-quantity guidance. -
deviance(),df.residual(), andnobs()now work fordrmTMBfits, making base-R model summaries and comparison helpers more complete. -
fitted()now returns family-specific response summaries:mufor implemented Gaussian-like, Gamma, beta, beta-binomial, Poisson, and NB2 mean models, the expected ordered-category score for cumulative-logit ordinal models, the arithmetic response mean for lognormal models,(1 - zi) * mufor zero-inflated Poisson and zero-inflated NB2 models,(1 - hu) * mu / (1 - Pr_NB2(0))for hurdle NB2 models, and a two-columnmu1/mu2matrix for bivariate Gaussian models. -
fixef()now returns distributional fixed-effect coefficients and acts as a mixed-model-friendly alias forcoef(). -
lognormal()now fits fixed-effect univariate lognormal location-scale models for positive responses, withmuandsigmadefined on the log-response scale,fitted()returning the arithmetic response mean, and simulation plus likelihood tests checked againststats::dlnorm(). -
meta_known_V(V = V)now fits Gaussian meta-analysis with diagonal or dense full known sampling covariance usingfamily = gaussian(). -
meta_vcov_bivariate()now builds row-paired dense sampling covariance matrices for bivariate Gaussian meta-analysis with known within-study covariance, andmeta_known_V(V = V)now fits complete-row bivariate Gaussian known-Vmodels by adding that sampling covariance to the fitted residual covariance fromsigma1,sigma2, andrho12. -
ranef()now returns fitted conditional random-effect blocks, including ordinarymu, residual-scalesigma,phylo_mu, and the firstspatial_mublocks when present. -
rho12()now returns response-scale residual correlations from bivariate Gaussian location-coscale fits, withtype = "link"available for Fisher-z-like linear predictors using the guarded transformrho12 = 0.999999 * tanh(eta_rho12). -
student()now fits fixed-effect univariate Student-t location-scale-shape models withmu,sigma, andnuformulas. Thenuparameter is modelled asnu = 2 + exp(eta_nu)for a stable finite-variance robust continuous family. -
truncated_nbinom2()now fits zero-truncated negative-binomial 2 models for positive counts, with ordinarymurandom intercepts and independent numeric slopes allowed in non-hurdle models.muandsigmadescribe the untruncated NB2 component,fitted()returns the conditional positive-count meanmu / (1 - Pr_NB2(0)), andsigma(fit)returns the NB2 overdispersion scale. Addinghu ~ predictorsstill fits the corresponding fixed-effect hurdle NB2 model; hurdle random effects outside the exact Q-Serieshu ~ relmat(1 | id, Q = Q)local-fit gate, correlated zero-truncated random slopes, andsigmarandom effects remain planned. -
drmTMB()now fits phylogenetic random intercepts and one numeric phylogenetic random slope in the univariate Gaussian location formula withphylo(1 | species, tree = tree)andphylo(1 + x | species, tree = tree), using an ultrametric branch-length tree and the sparse augmented A-inverse path. It also fits coordinate-based spatial random intercepts and one numeric spatialmuslope in the univariate Gaussian location formula withspatial(1 | site, coords = coords)andspatial(1 + x | site, coords = coords). The slope paths estimate independent intercept and slope fields with the same fixed structured precision and separate SDs, labelled with terms such asphylo(1 | species),phylo(0 + x | species),spatial(1 | site), andspatial(0 + x | site). -
animal()andrelmat()now fit one numeric univariate Gaussianmuslope beside their fitted random-intercept paths, for exampleanimal(1 + x | id, pedigree = ped)andrelmat(1 + x | id, K = K), using independent intercept and slope fields with separate SDs. Planned structured-effect markers outside the first fitted one-slope paths, such as standalone or partial phylogenetic scale terms, spatial terms insigma,spatial(1 | site, mesh = mesh), multiple structured slopes, slope correlations, spatial q=4 blocks, and predictor-dependent spatialcorpair()formulas, are parsed bydrm_formula()and rejected bydrmTMB()with planned-feature errors until their TMB likelihoods and recovery tests are implemented. - The “Which scale are you modelling?” tutorial now includes a copy-run scale audit with fitted output and interpretations for
sigma ~,weights =, preferredmeta_V(V = V),sd(group) ~, and bivariaterho12 ~syntax. - Tutorial prose now clarifies that ordinary likelihood weights and known sampling covariance are separate concepts, and that dense full
meta_V(V = V)paths currently reject non-unit weights; deprecatedmeta_known_V(V = V)remains only a compatibility alias. - The Gaussian location-scale tutorial now includes a worked growth example with equations, fitted
summary()output, response-scalesigmainterpretation, and a table mapping mean growth and residual SD back to the biological question. - The bivariate location-coscale tutorial now includes worked activity-boldness equations, output-reading guidance for
rho12, and a response-scale residual-correlation curve along a disturbance gradient. - The bivariate Gaussian coscale phase now has a closure audit in the roadmap:
rho12(),corpairs(), bivariate known sampling covariance, row likelihood weights,mvbind()shorthand, residual diagnostics, and unsupported bivariate random-effect syntax are all documented as implemented or planned in one place. - The response-family tutorial now starts with an at-a-glance table that maps common measurement processes to implemented families, distributional parameters, the meaning of
sigma, and the main current limitation. - The meta-analysis tutorial now includes a worked restoration example with equations, fitted
summary()output, response-scale residual heterogeneity interpretation, and a clearer distinction between preferredmeta_V(V = V)and ordinary likelihoodweights =. - The phylogenetic-spatial tutorial now includes a worked thermal-tolerance example for the implemented
phylo(1 | species, tree = tree)path, with equations, fitted output, tree/species validation guidance, bivariate phylogenetic and coordinate-spatial reading guidance forcorpairs(),summary(fit)$covariance, direct profile targets, the first labelled q=4 phylogenetic location-scale syntax, and clearer marking of implemented coordinate-spatial intercept, one-slope, and q=2 bivariate location paths versus planned mesh/SPDE and spatial q=4 paths. - The getting-started article and pkgdown tutorial menu now provide a clearer learning path from biological or statistical questions to the matching tutorial and distributional parameter.
- Public documentation now pairs symbolic model equations with matching R syntax for the first Gaussian location-scale, random-effect scale, bivariate
rho12, meta-analysis, and phylogenetic examples, and clarifies planned spatialcoordsversusmeshinputs. - The likelihood design now includes a central TMB
model_typerouting table, aligned with the implemented source map, including the hidden phylogenetic prior parity branch used only by tests. -
residuals()now returns whitened Pearson residuals for bivariate Gaussian fits, andvcov()now uses coefficient-level row and column names. - Initial project scaffold.