Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solved: 2-Way ANOVA erroneously saying there are aliased coefficients in model. Wrong error message for empty cell in the interaction. #441

Closed
DanielShowalter opened this issue Aug 3, 2019 · 2 comments
Assignees

Comments

@DanielShowalter
Copy link

  • JASP version: 0.10
  • OS name and version: Windows 10
  • Analysis:
  • Bug description: ANOVA function is claiming that predictor variables are linearly dependent when they are not. Have repeated this error on a separate computer. Have also conducted many 2-way ANOVA tests successfully in JASP.
  • Add JASP files as a zip:

Behavioral Risk Factor Surveillance Survey - BRFSS_Race_Sleep_Flu_dan.xlsx

  • Screenshot:
    image

  • Expected behaviour: Should produce output for these variables since there is no linear combination of the predictor variables (this can be verified by running a correlation between them and seeing that it is nowhere near 1).

  • Steps to reproduce:

  1. Import data from attached spreadsheet.
  2. Run an ANOVA with CHECKUP1 as the Dependent and FLUSHOT6 and EDUCA as the factors.
@AlexanderLyNL AlexanderLyNL changed the title 2-Way ANOVA erroneously saying there are aliased coefficients in model Solved: 2-Way ANOVA erroneously saying there are aliased coefficients in model. Wrong error message for empty cell in the interaction. Aug 4, 2019
@AlexanderLyNL
Copy link
Contributor

The problem here is the data resulting in an empty cell in your EDUCA x FLUSHOT6 (6 x 2) table. There are only 2 people (id: 5961 and 6692) that scored a 1 in EDUCA and both of them score a 1 on FLUSHOT6. Hence, the cell EDUCA=1 x FLUSHOT6=2 is empty and the ANOVA with interaction can simply not be performed. The error message is not that informative and we should change that.

If you're not interested in the interaction between EDUCA and FLUSHOT, then one way out would be to remove the interaction under the model tab.

Another option would be to remove all cases, where EDUCA=1 from the analysis, which can be done with a filter. I've done this analysis for you, see the JASP file:
Behavioral.Risk.Factor.Surveillance.Survey.-.BRFSS_Race_Sleep_Flu_dan.jasp.zip

Please reopen if something else's unclear.

@JohnnyDoorn could you please keep check for an empty cell, when rewriting the analysis?

@DanielShowalter
Copy link
Author

Ah, yes! I see. Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants