JuliaStats / MixedModels.jl

A Julia package for fitting (statistical) mixed-effects models
http://juliastats.org/MixedModels.jl/stable
MIT License
405 stars 48 forks source link

Error on `parametricbootstrap` for rank deficient models #754

Closed ararslan closed 6 months ago

ararslan commented 6 months ago

Looks like https://github.com/JuliaStats/MixedModels.jl/blob/cfd302310ba66ad5008e97738bd6710cf5a7509a/src/bootstrap.jl#L250 is problematic for rank deficient models since β_names has one name per fixed effect (which is ≤ the number of coefficients) but fixef!(βsc, m) is being called with the full coefficient vector as the first argument.