Repository navigation
Releases
Releases · JuliaMixedModels/MixedModelsPermutations.jl
v0.3.0
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).
v0.2.0
MixedModelsPermutations v0.2.0
- fix
permutationtest(thanks @behinger!) - bump Julia and MixedModels lower compat bounds
- use
progressinstead ofhide_progress - drop problematic
use_threads - improved CI
- officially enforce YAS
Merged pull requests:
- New OLS ranef method, expose more options in boostrap to ease experimentation (#34) (@palday)
- cov-based inflation factor calculation (#39) (@behinger)
- permutationtest (#40) (@behinger)
- update ubuntu LTS (#41) (@palday)
- spellcheck CI (#42) (@palday)
- CompatHelper: bump compat for StatsModels to 0.7, (keep existing compat) (#43) (@github-actions[bot])
- CompatHelper: bump compat for StatsBase to 0.34, (keep existing compat) (#44) (@github-actions[bot])
- CompatHelper: add new compat entry for Statistics at version 1, (keep existing compat) (#45) (@github-actions[bot])
- Bump codecov/codecov-action from 1 to 4 (#46) (@dependabot[bot])
- Bump actions/checkout from 2 to 4 (#47) (@dependabot[bot])
- Bump julia-actions/setup-julia from 1 to 2 (#48) (@dependabot[bot])
- Update cache in CI (#50) (@palday)
- codecov yml (#51) (@palday)
- Release 0.2.0 cleanup (#52) (@palday)
Closed issues:
v0.1.4
MixedModelsPermutations v0.1.4
Closed issues:
- PermutationSchema: completly-pooled LeastSquares (#3)
- Implementation Structure (#5)
- MMP hangs at 8% (#21)
- Expose different residual measures (#24)
- zerocorr leads to error with MixedModelPermutation (#29)
Merged pull requests:
- Simulation Scripts & Singular OLSFranef refactor (#11) (@behinger)
- Expose residual and inflation methods (#28) (@palday)
- zerocorr support for permutation (#30) (@palday)
- use type hierarchy and progress from MixedModels 4 (#31) (@palday)
- Residual-Problem Notebook (#32) (@behinger)
- fixes for bootstrap type parameters (#33) (@palday)
v0.1.3
MixedModelsPermutations v0.1.3
Closed issues:
- Compat MixedModels 4.0 MethodError: no method matching unscaledre!(::Vector{Float64}, ::ReMat{Float64, 2}, ::Matrix{Float64}) (#25)
Merged pull requests:
v0.1.2
MixedModelsPermutations v0.1.2
Merged pull requests:
v0.1.1
MixedModelsPermutations v0.1.1
Closed issues:
- Cholesky error when setting theta (#16)
Merged pull requests: