Question: Need help with this R code Problem 2. Propose a test that generalizes the (two-sample) Kolmogorov-Smirnov test to more than 2 groups. Describe the main
Need help with this R code
Problem 2. Propose a test that generalizes the (two-sample) Kolmogorov-Smirnov test to more than 2 groups. Describe the main idea in a couple of sentences as a comment. Then implement your test as a function called oneway.ks.test (y, g, B 1e4). Try your function on the smokers dataset. It is acceptable to search for existing tests that fit the description. If you find such a test, provide its name. You still have to implement it yourself.] Problem 2. Propose a test that generalizes the (two-sample) Kolmogorov-Smirnov test to more than 2 groups. Describe the main idea in a couple of sentences as a comment. Then implement your test as a function called oneway.ks.test (y, g, B 1e4). Try your function on the smokers dataset. It is acceptable to search for existing tests that fit the description. If you find such a test, provide its name. You still have to implement it yourself.]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
