Skip to content

linear-mixed-effects: upgrade diagnostic plots #156

Open
@nbokulich

Description

@nbokulich

Improvement Description
The old static seaborn plots look a bit clunky. Especially when plotting numeric group effects (this will probably also be an issue with the ANOVA residual plots but have not tested). See example below.

Current Behavior
Clunkiness galore.

Proposed Behavior

  1. better handling of numeric variables. E.g., use a color gradient instead of categorical colors when numeric values are passed (need to look at the data type, so that numbers cast as str are handled appropriately).
  2. maybe use a better visualization overall? Static is fine for diagnostics, but something like a "volatility" chart might be a good upgrade here. E.g., turn linear-mixed-effects into a pipeline, merge diagnostics + metadata into a single file, and pass to volatility to create a separate visualization as output.
  3. Maybe make the visualizations optional?

References
Example of ugly handling of numeric group variables:
a QZV:
linear-mixed-effects.zip
screengrab:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededtime:2|mediumMay take some time to complete (even with familiarity).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions