ANOVA with factors with different dimensions

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)
Post Reply
timlucas
Posts: 5
Joined: Thu Apr 10, 2025 7:34 am

ANOVA with factors with different dimensions

Post by timlucas »

Hi,
I would like to carry out an ANOVA analysis and find out which factors have the greatest influence on the measurement result. I want to measure the electrical resistence.
I have the following factors:
Measuring equipment with 2 different measuring devices
Amperage with 2 different amperages being measured
Measuring person: 3 different measuring persons
I have selected ANOVA in jamovi, but I get the error message "incorrect number of dimensions". Actually, an ANOVA should also work for factors with different numbers of factor levels, right?
Here ist the error message:

Code: Select all

Error in results["Residuals", "Sum Sq"]: incorrect number of dimensions
User avatar
jonathon
Posts: 2830
Joined: Fri Jan 27, 2017 10:04 am

Re: ANOVA with factors with different dimensions

Post by jonathon »

hi,

double check you're using a recent version of jamovi ... and if so, can you save a .omv file of this error and attach it to this issue (you may need to zip it up).

cheers

jonathon
timlucas
Posts: 5
Joined: Thu Apr 10, 2025 7:34 am

Re: ANOVA with factors with different dimensions

Post by timlucas »

I am using the most recent zip Version of jamovi. Unfortunately I cant just upload my data, because of corporate data guidelines.
User avatar
jonathon
Posts: 2830
Joined: Fri Jan 27, 2017 10:04 am

Re: ANOVA with factors with different dimensions

Post by jonathon »

Yeah, fair enough. If you could email is to contact <at> jamovi.org we could take a look and then delete it, but i appreciate this may not be possible.

I would say there's something unusual about your data which means the ANOVA can't be run ... but rather than providing a helpful error message, jamovi is barfing with a cryptic error.

jonathon
timlucas
Posts: 5
Joined: Thu Apr 10, 2025 7:34 am

Re: ANOVA with factors with different dimensions

Post by timlucas »

I measured the electrical resistance of different regions of an object. So I have 4 dependent variables and 3 independent variables. I can create an ANOVA for every dependent variable, expect of this one. I only get the error message while trying to create the ANOVA for this one particular depentend variable, thats the odd thing.
User avatar
jonathon
Posts: 2830
Joined: Fri Jan 27, 2017 10:04 am

Re: ANOVA with factors with different dimensions

Post by jonathon »

take a look at the counts and standard deviation for each cell in your design, i.e. if the SD is zero for any of those, that can cause an ANOVA to fail.

this may not be it, but i think you'll find the problem is something like it.

Screenshot 2025-04-12 at 09.18.54.png
Screenshot 2025-04-12 at 09.18.54.png (826.06 KiB) Viewed 38597 times
Post Reply