View source: R/sample_stratified.R
get_sample_strata | 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.