In the plot we just made, we see high variability for low values of height. This is because we have few data points in these strata. This time use the quantile function for quantiles 0.1, 0.2, . . . , 0.9 and the cut function to assure each group has the same number of points. Hint: for any numeric vector x, you can create groups based on quantiles like this:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here