###To run this code in Jamovi, first click on "Modules" in the upper righthand corner of the Jamovi screen. Then select "jamovi library". Scroll down to find the package entitled: "Rj - Editor to run R code inside jamovi". Click the button to install. Now there will be a new icon in the main Jamovi toolbar with the "R" symbol. This is the editor that allows you to plug-in raw R code into Jamovi. Note: if this button doesn't automatically appear after the install, you may have to restart Jamovi. ###R code for Question 2(c): copy and paste into Rj Editor window, then press the green arrow (upper right side of command window) to run the code. mod1 <- aov(formula=data$Hemoglobin~data$Sex*data$Diet) plot(mod1)