79589332

Date: 2025-04-23 19:04:28
Score: 9 🚩
Natty:
Report link
Hi, 
Provided is my code below - when I run the ezANOVA function, I get an error "argument "wid" is missing, with no default". Is there a way to fix my code?

My thought is I need to uniquely identify each data point in each dose responders array?

Help appreciated.
Thanks


# Code below: 
dose1_responders <- c(1, 2, 0, 3, 1, 2, 0, 1, 2, 3, 1, 0, 2, 3, 1)
dose2_responders <- c(2, 1, 3, 0, 2, 1, 3, 2, 0, 1, 2, 3, 1, 2, 0)

install.packages("ez")
library(ez)

# Combine the data into a single dataframe for easier analysis
dose_data <- data.frame(
  dose = c(rep("Dose1", 15), rep("Dose2", 15)),
  responders = c(dose1_responders, dose2_responders))

# ezANOVA 
ez_results <- ezANOVA(data = dose_data, dv = responders, between = dose, within = NULL, type = 3)
print(ez_results)
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): Is there a way
  • RegEx Blacklisted phrase (1.5): fix my code?
  • RegEx Blacklisted phrase (3): Help appreciated
  • RegEx Blacklisted phrase (1): I get an error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kory