Skip to content

Additional details in documentation for Grouping() #538

@oizin

Description

@oizin

Hi, great package, I just have a small suggestion for the documentation.

I was using MixedModels to fit a model with many levels and got the following error:

┌ Warning: Random effects grouping variables with many levels can cause out-of-memory errors.  Try manually specifying `Grouping()` contrasts for those 
variables.

It took me a while to figure out how to use Grouping() and contrasts, until I saw the example in the tests below. I think it would be worth having something like fit(MixedModel, @formula(y ~ 1 + (1 | grp)), d, contrasts=Dict(:grp => Grouping())) in the documentation for Grouping.

https://github.com/JuliaStats/MixedModels.jl/blob/aae37e9dd724d6eb8ded292a9a8798300bb2a562/test/grouping.jl

Happy to create a pull request if you think this is worthwhile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions