How to do ANOVA in R

Hello!
Can anyone help me to do ANOVA in RSTUDIO?
I already try this code: { model <- avo(y~x, data = mydata)
Summary (model) } and it actually gave me a lot of numbers that are quite reliable, but I'm not sure that is the correct way to do ANOVA and, more important, ask for p-value.

Anyone knows if this code is right?

Thank you.

Hi @Beatriz98 ,

For make ANOVA in Rstudio, the first step is load the data.

If you load well the data, the script was something like that:

model <-aov(y ~ x, data=mydata)
summary(model) # here you get the p-values.
1 Like

So, the code I did was right. Thank you.

One-Way ANOVA Test in R - Easy Guides - Wiki - STHDA is a good introduction of anova using r

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.