Skip to content

Don't test assumptions that are not required #260

Closed
@mattansb

Description

@mattansb

By model type.

Here are some examples that should not work. (@bwiernik Can you double check me?)

m <- glm(am ~ mpg, mtcars,
         family = binomial())

performance::check_normality(m)
#> OK: residuals appear as normally distributed (p = 0.059).


m <- glm(gear ~ mpg, mtcars,
         family = poisson())

performance::check_normality(m)
#> Warning: Non-normality of residuals detected (p = 0.001).

performance::check_heteroscedasticity(m) # fails properly
#> Error in check_heteroscedasticity.default(m): This Breusch-Pagan Test currently only works Gaussian models.

Created on 2021-04-08 by the reprex package (v1.0.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Consistency 🍏 🍎Expected output across functions could be more similarEnhancement 💥Implemented features can be improved or revised

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions