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

Aliased coefficients error code #495

Closed
mlpetrun opened this issue Sep 19, 2019 · 3 comments
Closed

Aliased coefficients error code #495

mlpetrun opened this issue Sep 19, 2019 · 3 comments
Assignees

Comments

@mlpetrun
Copy link

  • JASP version: 10.2
  • OS name and version: Windows 10
  • Analysis: two-way ANOVA
  • Bug description: When I try to run a two-way ANOVA, I get an error code "there are aliased coefficients in the model." Not sure what this means and I cannot find how to fix this via google.
  • Steps to reproduce:
  1. Go to ANOVA > Select ANOVA
  2. Move "treat" and "stress" to fixed factors. Move "distance traveled" to dependent variable
  3. See error.
    Acute NAC BEH DATA FINAL Fall 2018.zip
    Screenshot (11)
@JohnnyDoorn
Copy link

Hi @mlpetrun
I just took a look at your data, and there might be some unintentional periods in the factor level names:
Screenshot_2019-09-20_10-47-58

This causes some combination of the factor levels (because you include the interaction term in your model) to have empty cells (i.e., 0 observations), which in turn leads to that error message. It's similar to the issue reported here: #441
You can either run a different SS type ANOVA, remove the interaction, or, and I think this makes most sense, remove the periods from the factor level names, so that each factor has 2 levels. I think the last approach is what was intended, and will probably fix your issue.

Kind regards,
Johnny

@mlpetrun
Copy link
Author

Thanks for catching that! That was one of the first things I checked in my csv file, but the periods were not showing in my raw file? So I just retyped everything and it's working fine now. Weird.
Thanks!

@JohnnyDoorn
Copy link

No problem - glad it worked out =)

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

2 participants