Skip to contents

Function to generate a binary categorical covariate

Usage

binary_cat_dist(n = 20, percent = 50, catvalue1 = 1, catvalue2 = 0)

Arguments

n

number of subjects

percent

percent of subjects (approximate) in first category

catvalue1

numeric value for first category

catvalue2

numeric value for second category

Value

a numeric vector