Skip to contents

This is the code to create the study data - a simulated dataset that can be used to demonstrate how to use the codebook package.

Usage

study

Format

A data frame with 20 rows and 10 variables:

id

Participant's study identification number

address

Participant's home address

sex

Biological sex of the participant assigned at birth, female/male

date

Participant's date of enrollment

time

Participant's time of enrollment

date_time

Participant's date and time of enrollment

days

Total number of days the participant was enrolled in the study

height

Participant's height in inches at date of enrollment

likert

An example Likert scale item, 1-5

outcome

Participant experienced the outcome of interest, TRUE or FALSE