Question: (b) write a function `mwstatC` in Rcpp which calculates the MW statistic between two numeric vectors `x` and `y`. (Assume that `x` and `y` do

(b) write a function `mwstatC` in Rcpp which calculates the MW statistic between two numeric vectors `x` and `y`. (Assume that `x` and `y` do not contain missing values).
(b) Benchmark the functions with inputs of different lengths (`n = 10, 100, 1000`), comment on the results.
##### (b) write a function mustatc in Repp which calculates the MW statistic between two numeric vectors 'Xand 'y'. Assume that x and 'y' do not contain missing values). ***{r} all.equal(s, mustatC(x, y)) ##### (b) Benchmark the functions with inputs of different lengths (n = 10, 100, 1000), comment on the results. ##### (b) write a function mustatc in Repp which calculates the MW statistic between two numeric vectors 'Xand 'y'. Assume that x and 'y' do not contain missing values). ***{r} all.equal(s, mustatC(x, y)) ##### (b) Benchmark the functions with inputs of different lengths (n = 10, 100, 1000), comment on the results
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
