Page 2 of 2

Re: one-way ANOVA error

Posted: Wed Nov 15, 2017 12:11 am
by bradg
Thanks for taking the time to help!

the code I am using is: dat <- read.csv("PSY.308b.DA2.csv") the issue is the same for all files i have tried
I am on a 2017 macbook pro, running macOS Sierra, version10.12.6.
For R studio I am using version Version 1.1.383

Thanks again,
Brad

Re: one-way ANOVA error

Posted: Wed Nov 15, 2017 12:14 am
by jonathon
could you attach the data file, and provide the anova command you are using too?

with thanks

Re: one-way ANOVA error

Posted: Wed Nov 15, 2017 12:32 am
by bradg
Sure,
jmv::anova(data = dat, dep = 'HELPING', factors = c('HASTE'), effectSize = 'partEta', postHoc = c('HASTE'), postHocCorr = 'tukey', homo = TRUE)

Re: one-way ANOVA error

Posted: Wed Nov 15, 2017 12:36 am
by jonathon
hmm, what does excuting in R:

R.version

output?

with thanks

Re: one-way ANOVA error

Posted: Wed Nov 15, 2017 1:29 am
by bradg
platform x86_64-apple-darwin15.6.0
arch x86_64
os darwin15.6.0
system x86_64, darwin15.6.0
status
major 3
minor 4.2
year 2017
month 09
day 28
svn rev 73368
language R
version.string R version 3.4.2 (2017-09-28)
nickname Short Summer

Re: one-way ANOVA error

Posted: Wed Nov 15, 2017 11:10 pm
by bradg
Jonathan,
My professor was able to finally find a solution.

as.factor(dat$HASTE)

was used although, class(dat$HASTE) gave us the output
[1] "integer"

We then used dat$HASTE<-as.factor(dat$HASTE), which successfully defined HASTE as a factor
Running the ANOVA then gave us the error

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘quantreg’

Instaling "Quantreg" fixed my issue with ANOVA's and Levene's test, although we have no idea why this package was not installed already.

Thanks for all your help!

Re: one-way ANOVA error

Posted: Wed Nov 15, 2017 11:12 pm
by jonathon
awesome brad!

i'll keep working on this, and try to get to the bottom of it, but i'm glad you've got something working.

with thanks

Re: [SOLVED] one-way ANOVA error

Posted: Tue Nov 10, 2020 6:32 pm
by Priyanka_S
Hello, I am a teaching assistant in this same class 3 years later (but during the coronavirus lockdowns, so not as easily able to get help from people around me) and I'm having this same problem even after trying what was listed in this thread. I hope to be able to troubleshoot with someone on here!

Re: [SOLVED] one-way ANOVA error

Posted: Wed Nov 11, 2020 12:40 am
by jonathon
hi, could you start a new thread?

with thanks