Question: Can anyone solve this in R programming? Write your own function my.wilcox. test which can perform both exact and normal approximation test for two-sided alternative


Can anyone solve this in R programming?
Write your own function my.wilcox. test which can perform both exact and normal approximation test for two-sided alternative hypothesis. Your function will compute the p-value using normal approximation if n, and n2 > 12. Otherwise, it will compute the p-value using exact test. Your function will return the test statistics W1 and W2, p-value p.value and a message indicating the type of test used (normal or exact). You may assume there is no ties in the data. Write your own function my.wilcox. test which can perform both exact and normal approximation test for two-sided alternative hypothesis. Your function will compute the p-value using normal approximation if n, and n2 > 12. Otherwise, it will compute the p-value using exact test. Your function will return the test statistics W1 and W2, p-value p.value and a message indicating the type of test used (normal or exact). You may assume there is no ties in the data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
