rnd_str: rnd_str: Random assignment by strata

Description Usage Arguments Value Examples

View source: R/rnd_str.R

Description

Take a dataset and assign treatment by a specified stratum

Usage

1
rnd_str(df, strata, id)

Arguments

df

a dataframe, containing strata variable

strata

a column in df naming the stratification variable, can be character or numeric

id

A variable identify unit of randomization

Value

dataframe with new column assigning treatment

Examples

1
2
df <- jumble::ACTG175
rnd_str(df, symptom, pidnum)

kmcconeghy/jumble documentation built on Jan. 8, 2020, 8:52 a.m.