get_sample_strata {resemble} | R Documentation |
for internal use only! This function takes a continuous variable, creates n strata based on its distribution and assigns the corresponding starta to every value.
get_sample_strata(y, n = NULL, probs = NULL)
y |
a matrix of one column with the response variable. |
n |
the number of strata. |
a data table with the input y
and the corresponding strata to
every value.