Page 1 of 2
[SOLVED] one-way ANOVA error
Posted: Thu Nov 02, 2017 10:27 pm
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!
Re: one-way ANOVA error
Posted: Thu Nov 02, 2017 10:31 pm
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
Re: one-way ANOVA error
Posted: Thu Nov 02, 2017 10:36 pm
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?
Re: one-way ANOVA error
Posted: Fri Nov 03, 2017 1:24 am
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)
Re: one-way ANOVA error
Posted: Fri Nov 03, 2017 1:31 am
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
Re: one-way ANOVA error
Posted: Sun Nov 05, 2017 7:45 pm
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!
Re: one-way ANOVA error
Posted: Tue Nov 14, 2017 7:50 pm
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
Re: one-way ANOVA error
Posted: Tue Nov 14, 2017 10:02 pm
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
Re: one-way ANOVA error
Posted: Tue Nov 14, 2017 11:20 pm
by bradg
Johnathon
both of those commands gave me the output: [1] "0.8"
Brad
Re: one-way ANOVA error
Posted: Tue Nov 14, 2017 11:36 pm
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