View source: R/stratify_data.R
stratify_data | R Documentation |
this function provides a stratified dataset to be used by the split_data function.
stratify_data(randomized_data, groups)
randomized_data |
dataframe of the randomized data returned by the randomize function |
groups |
information on how the stratified data will be grouped (name of column, index of column, vector) |
simulate_data(number_of_participants=10, covariance_matrix=diag(2), outcome_column=1, means=c(0,0))
randomized_data <- randomize(data=data, seed = 7)
stratified_data <- stratify_data(randomized_data=randomized_data,groups=groups)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.