n into slices of approximately equal size. It is used to construct the piecewise bases, and
internally used in lad functions.
ldr.slices(y, nslices = 3)n.
n.
n indicating the slice number of each observed response value.m is computed as the largest integer less or equal to n/nslices.
The n observations of y are ordered in the increasing order.
The first set of first m observations is allocated to the first slice, the second set is allocated into the second slice, and so on.