Question: - Write an R function that performs the Gehan test for the large-sample approximation. -Function should return an object that contains the test statistic, the
- Write an R function that performs the Gehan test for the large-sample approximation.
-Function should return an object that contains the test statistic, the p-value, and the
method.
-The print method should output: the name of the test (Gehan), the method used, the test
statistic, and the p-value.
- Comment your code. Including a description of the function(s), the type and format of
the arguments, and a description of the values returned. Your comments should act like
a manual for how to use the function. Also include comments in the body of the
function that describe what is going on.
- Apply your function to the following large-sample dataset.
Dataset 1
Background: 4 <18 13 27 39 11 <23 <6 <3 9 29 <19 36
Site: 49 10 <17 <28 50 30 32 20 <26 34 37 48 45
A < denotes non-detect data, in which case the detection-limit is given.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
