[SOLVED] one-way ANOVA error
[SOLVED] one-way ANOVA error
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!
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 499 times
Re: one-way ANOVA error
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
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
hmm. actually, this works for me:
are you using the latest jmv?
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)
Re: one-way ANOVA error
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
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
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
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!
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
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
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
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
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
Johnathon
both of those commands gave me the output: [1] "0.8"
Brad
both of those commands gave me the output: [1] "0.8"
Brad
Re: one-way ANOVA error
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
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