[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)

by bhite38 » Thu Nov 02, 2017 10:27 pm

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

by jonathon » Thu Nov 02, 2017 10:31 pm

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: 1483
Joined: Fri Jan 27, 2017 10:04 am

by jonathon » Thu Nov 02, 2017 10:36 pm

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?
User avatar
jonathon
 
Posts: 1483
Joined: Fri Jan 27, 2017 10:04 am

by bhite38 » Fri Nov 03, 2017 1:24 am

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

by jonathon » Fri Nov 03, 2017 1:31 am

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
User avatar
jonathon
 
Posts: 1483
Joined: Fri Jan 27, 2017 10:04 am

by bhite38 » Sun Nov 05, 2017 7:45 pm

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

by bradg » Tue Nov 14, 2017 7:50 pm

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
bradg
 
Posts: 6
Joined: Fri Nov 10, 2017 7:25 pm

by jonathon » Tue Nov 14, 2017 10:02 pm

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
User avatar
jonathon
 
Posts: 1483
Joined: Fri Jan 27, 2017 10:04 am

by bradg » Tue Nov 14, 2017 11:20 pm

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

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

by jonathon » Tue Nov 14, 2017 11:36 pm

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
User avatar
jonathon
 
Posts: 1483
Joined: Fri Jan 27, 2017 10:04 am

Next

Return to Help