To run Anova with type III errors, I was told to reset my contrasts as shown below and it worked. But how do I reset it back to the R default?
options(contrasts = c("contr.sum", "contr.poly"))
To run Anova with type III errors, I was told to reset my contrasts as shown below and it worked. But how do I reset it back to the R default?
options(contrasts = c("contr.sum", "contr.poly"))
It should reset automatically if you restart your R session (ctrl+shift+F10 in RStudio). But on a fresh session, this is what it looks like:
options("contrasts")
#> $contrasts
#> unordered ordered
#> "contr.treatment" "contr.poly"
Created on 2022-08-22 by the reprex package (v2.0.1)
(note that reprex
is creating a fresh session, so it's always a good way to see the default options).
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.