Skip to content

v0.3.0

Latest

Choose a tag to compare

@palday palday released this 01 Dec 04:45
· 3 commits to main since this release
a5abd34

Results from nonparametricbootstrap and permutation change from v0.2.0 for every model because of the inflation-factor fixes below.
Rerun any analyses that used v0.2.

Added

  • Support for MixedModels.jl v5.
    MixedModels v4.22 and later remain supported (#72).
  • model_residuals(model, blups) is exported.
    It replaces the pirated residuals(model, blups) method (#72).
  • inflation_factor warns when the empirical BLUP covariance has lower rank than the estimated covariance, for example in singular or near-singular fits.
    In that case the inflated BLUPs cannot match the model's covariance.
    Simplifying the random-effects structure or using blup_method=olsranef can help (#71).
  • BlockDiagonals 0.2 is allowed (#58).

Changed

  • Breaking: Julia 1.10 or later is required (previously 1.9) (#74).
  • Breaking: the default residual_method for permutation is now model_residuals (#72).
  • The default random number generator is Random.default_rng() instead of Random.GLOBAL_RNG (#67).
  • Docstrings for permutation and permutationtest now describe the actual keyword arguments (progress, inflation_method, statistic, β) (#67).
  • The documentation includes the API page and deploys from the JuliaMixedModels organization (#67).

Fixed

  • The nonparametric bootstrap applied each inflation factor to the wrong term, shifted by one position.
    With a single random-effects term, the BLUPs were scaled by the residual inflation factor instead of their own.
    With several terms, every term got its neighbour's factor (#68).
  • inflation_factor now uses the Cholesky ratio L_R · L_S⁻¹ from Carpenter, Goldstein & Rasbash (2003) instead of the covariance ratio Σ_R · Σ_S⁻¹.
    The covariance ratio over-inflated the random-effect standard deviations and could flip the sign of correlations.
    Inflated BLUPs now reproduce the estimated random-effect covariance.
    This affects both nonparametricbootstrap and permutation (#69).
  • Added a regression test for zerocorr models (#70).
  • Fixed the README installation instructions (#67).

Removed

  • Breaking: the method residuals(::LinearMixedModel, blups).
    It extended StatsAPI.residuals for types this package doesn't own (type piracy).
    Use model_residuals instead (#72).