randomize: randomize

View source: R/randomize.R

randomizeR Documentation

randomize

Description

this function provides a randomized dataset to be used by the stratify_data function.

Usage

randomize(data, seed = NULL)

Arguments

data

dataframe of the full data read in by the read_file function

seed

initialize a random number generator with a specific seed value

Examples

simulate_data(number_of_participants=10, covariance_matrix=diag(2), outcome_column=1, means=c(0,0))
randomized_data <- randomize(data=data, seed = 7)

DCAN-Labs/RFRF documentation built on March 15, 2024, 2:33 p.m.