Repository navigation
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 piratedresiduals(model, blups)method (#72).inflation_factorwarns 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 usingblup_method=olsranefcan 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_methodforpermutationis nowmodel_residuals(#72). - The default random number generator is
Random.default_rng()instead ofRandom.GLOBAL_RNG(#67). - Docstrings for
permutationandpermutationtestnow 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_factornow 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 bothnonparametricbootstrapandpermutation(#69).- Added a regression test for
zerocorrmodels (#70). - Fixed the README installation instructions (#67).
Removed
- Breaking: the method
residuals(::LinearMixedModel, blups).
It extendedStatsAPI.residualsfor types this package doesn't own (type piracy).
Usemodel_residualsinstead (#72).