[SOLVED] one-way ANOVA error

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)
bhite38
Posts: 4
Joined: Thu Nov 02, 2017 10:14 pm

[SOLVED] one-way ANOVA error

Post by bhite38 »

Hello!

When running a one-way anova with the jmv package, I've run across this error:
Error in results["Residuals", "Sum Sq"] : incorrect number of dimensions


The code used was as follows:
anova(data = dat_A, dep = 'Self_esteem', factors = c('Style'), effectSize = 'eta', postHoc = c('Style'), postHocCorr = 'tukey', homo = TRUE)


I've also attached the data set in case that helps.

Please let me know if any further information would be helpful thank you!
Attachments
One-way ANOVA.A.csv
This is the data set. I often read the data set in as dat_A (hence that being the name of the data set in the code)
(1.06 KiB) Downloaded 497 times
User avatar
jonathon
Posts: 2620
Joined: Fri Jan 27, 2017 10:04 am

Re: one-way ANOVA error

Post by jonathon »

hi, thanks for the report. i'll get straight on it.

as a work-around, i think if you change Style to be a factor you'll be in business:

dat_A$Style <- as.factor(dat_A$Style)

cheers
User avatar
jonathon
Posts: 2620
Joined: Fri Jan 27, 2017 10:04 am

Re: one-way ANOVA error

Post by jonathon »

hmm. actually, this works for me:

Code: Select all

library(jmv)

dat <- read.csv('~/Downloads/One-way ANOVA.A.csv')

anova(data = dat, dep = 'Self_esteem', factors = c('Style'), effectSize = 'eta', postHoc = c('Style'), postHocCorr = 'tukey', homo = TRUE)
are you using the latest jmv?
bhite38
Posts: 4
Joined: Thu Nov 02, 2017 10:14 pm

Re: one-way ANOVA error

Post by bhite38 »

Yep, I’ve re-installed it a few times now just to be sure that wasn’t the problem. I’m working on a very recent version of Mac though and I wonder if that could have something to do with it. I was also having the issue with Levene’s not showing values (if you remember that email recently)
User avatar
jonathon
Posts: 2620
Joined: Fri Jan 27, 2017 10:04 am

Re: one-way ANOVA error

Post by jonathon »

hmm, can you just confirm these versions:

installed.packages()['jmv','Version']
installed.packages()['jmvcore','Version']

and i assume running the *exact* code i provided above still produces the error?

with thanks
bhite38
Posts: 4
Joined: Thu Nov 02, 2017 10:14 pm

Re: one-way ANOVA error

Post by bhite38 »

Hey Jonathan,

Sorry for the delay in response. I was aiding a student with this error and decided it would be easiest if they directly communicated with you instead. The students' name is Brad. He is going to create an account shortly and jump onto this thread so you two can talk directly instead.

Thanks again for the help!
bradg
Posts: 6
Joined: Fri Nov 10, 2017 7:25 pm

Re: one-way ANOVA error

Post by bradg »

Jonathan,
Brad here, unfortunately, I am still getting the same error message when trying to run an ANOVA. Other students have been able to use the various fixes you suggested successfully, but it has not worked for me. I've had my university's IT help center and had them uninstall and reinstall everything as well as update my IOS (I was lead to believe my issue may have been a corrupted file while downloading the package, but that is not the case).
Everything is running in Jamovi, the problem is only in R studio. Please let me know if there anything else you would like to know
User avatar
jonathon
Posts: 2620
Joined: Fri Jan 27, 2017 10:04 am

Re: one-way ANOVA error

Post by jonathon »

hi brad,

thanks for getting in touch

could you run these commands and tell me what versions it outputs?:

installed.packages()['jmv','Version']
installed.packages()['jmvcore','Version']

with thanks

jonathon
bradg
Posts: 6
Joined: Fri Nov 10, 2017 7:25 pm

Re: one-way ANOVA error

Post by bradg »

Johnathon
both of those commands gave me the output: [1] "0.8"

Brad
User avatar
jonathon
Posts: 2620
Joined: Fri Jan 27, 2017 10:04 am

Re: one-way ANOVA error

Post by jonathon »

hi brad,

yeah, this is a tricky one to reproduce!

can you provide the exact code that you are running, i.e. the call you use to read the data (read.csv()?), the data, and the version of R you are using, and the operating system you are using?

with thanks
Post Reply