Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider these artificial data: Group1: 5 7 12 Group2: 4 6 Calculate a p-value f

ID: 3301226 • Letter: C

Question

Consider these artificial data:

Group1: 5 7 12

Group2: 4 6

Calculate a p-value for the hypothesis of no difference, using the permutation distribution of the difference in sample averages. (you do not need to calculate the t-statistics for each grouping, only the difference in averages)

Also, Prepare and include the table listing the 10 arrangements of the data and the difference between means for each suggested in the hint.

Note: I want the answer for this question solving by R software step by step to make the answer clear and if there are some calculator by hand please put it with the answer.

Thank you

  

Explanation / Answer

#find relevant R code for above:

Group1=c(5,7,12)
Group2=c(4,6)
library(DAAG)

set.seed(123)
twot.permutation(Group1, Group2, nsim=2000, plotit=TRUE)

#Output

[1] 0.399