randomize: Title

Description Usage Arguments Value

View source: R/randomize.R

Description

Title

Usage

1
2
3
randomize(data = NULL, unit_id = NULL, seed = NULL,
  intervention_type = "percentage", intervention_quantity = 50,
  block_id = NULL, baseline_vars = NULL)

Arguments

data

CSV data file input

seed

optional integer vector of length 1 containing a seed value to ensure identical randomization results across more than one run

block_id

character vector of length 1 indicating the name of a variable indicating blocks within which randomization should occur, instead of across the overall data set

baseline_vars

optional character vector of numeric variables for which to produce a balance plot between the treatment and comparison groups after completing random assignment

p

optional numeric vector of length 1 containing a value greater than 0 and less than 1, indicating the probability of a single unit of analysis being assigned to the treatment group. Default value is 0.5.

Value

A list containing an error message if applicable, and if no errors are found, a file name containing the randomization results for download, and if baseline_vars are specified, the base64-encoded balance plot


mathematica-mpr/edtechrce documentation built on Nov. 10, 2019, 9:19 a.m.