From the course: Descriptive Healthcare Analytics in R

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Adding to the data dictionary

Adding to the data dictionary - R Tutorial

From the course: Descriptive Healthcare Analytics in R

Start my 1-month free trial

Adding to the data dictionary

- [Narrator] In the last lecture, we began the data dictionary and added a native variable, veteran status. Here, we will add three more native variables: alcohol consumption, sleep duration, and asthma status. Again, we return to the code book. Let's find the alcohol variable we want to use. I'm going to use Control + F and look for alcohol. Here we are, ALCDAY5. This is a pretty complicated variable, so let's document it. Let's go over to the data dictionary, where I already did that. The question is simple enough. During the past 30 days, how many days per week or per month did you have at least one drink of any alcoholic beverage, such as beer, wine, a malt beverage, or liquor? But let's look at the coding I documented on the tab. See how complex the coding of this field is? One in the first position means per week. The other two positions are how many times per week. But note that two in the first position means "in the past 30 days." The other positions are how many times in the…

Contents