简体   繁体   中英

Robust 3 way ANOVA in R

I'm trying to conduct a 3 way Anova in R, using the WRS2 package. My data is heteroskedastic so i need to do a robust version eg trimmed means. I have my data arranged in long form (csv with 4 columns - 3 factors and 1 numeral). My input looks like this:

t3way(happiness ~ money*job*relationship, data = Dataset)

I get the following error: "Incomplete design! It needs to be full factorial!"

Thank you in advance!

I solved the same problem by re-factoring the variable with empty levels. Dataset$myvar <- factor(Dataset$myvar) Thus only the levels having data remain. Then the t3way worked fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM