Learn how to generate the smoking-related variables designed earlier in the data dictionary.
- [Instructor] First we will review the data dictionary…for the different smoking variables we need to make.…This was a rather complicated variable.…Next I will go through the code needed…to make the smoking variables.…We will make and check the variables.…Okay, let's go to our data dictionary.…Let's look at SMOKDAY2, our smoking variable.…We don't like that these unknowns need to be collapsed.…Also, Every Days and Some Days need to be collapsed.…Those will both be one in the new variable.…
So we need to make a grouping variable first…which we didn't have to do with age.…That will be called SMOKGRP.…I'll show you how.…But also, don't forget the SMOKE100 tab.…We have a bunch of never smokers in there,…and we need to make sure that they show up…as non-smokers rather than unknown in the grouping variable.…Let's scroll down a little and look at the smoking code.…First before we get to the grouping variable,…let's get our NEVERSMK variable going.…Remember if they said two, or No, to smoking…a hundred cigarettes in their lives,…
Author
Released
12/12/2016This detailed, practical course is designed to help those in the field of public health, medicine, and data science to edit, analyze, and interpret data. Learn how to code new variables, use the forward-stepwise modeling process, and document your decisions. Find out how to visualize results by generating charts and graphics, and how to add tables and figures to your documentation. This course helps equip you to independently design, develop, and execute a full BRFSS analysis, and even publish your results in scientific publications or journals.
- Reviewing survey data and documentation
- Conducting a BRFSS analysis
- Understanding naming conventions
- Editing variables
- Reviewing distributions
- Generating an analytic dataset
- Developing descriptive statistics to answer prespecified hypotheses
- Preparing publication-worthy tables and plots
Skill Level Advanced
Duration
Views
Related Courses
-
Code Clinic: R (2015)
with Mark Niemann-Ross3h 24m Intermediate
-
Introduction
-
Welcome46s
-
Introduction to the course1m 22s
-
-
1. What Is the BRFSS?
-
US risk factors5m 30s
-
Introduction to the BRFSS2m 46s
-
More on the BRFSS1m 50s
-
Ethical use of BRFSS data4m 38s
-
BRFSS resources2m 25s
-
Installing R1m 50s
-
Navigating in R2m 37s
-
-
2. Designing Your Metadata
-
Uses of a data dictionary4m 35s
-
Understanding confounders4m 24s
-
Making a web of causation6m 28s
-
-
3. Reading in Data and Applying Exclusions
-
Reading in BRFSS XPT data6m 57s
-
Naming conventions5m 38s
-
Keeping native variables5m 15s
-
Operations in code3m 52s
-
Generating exposure4m 43s
-
Generating outcome variables3m 32s
-
-
4. Preparing for Descriptive Analysis
-
Generating the age variables4m 18s
-
What is Table 1?4m 26s
-
-
5. Conducting Descriptive Analysis
-
Making a frequency macro4m 8s
-
6. Descriptive Analysis: Weights and Tests
-
Conclusion
-
Review of the metadata6m 11s
-
Uses of metadata5m 26s
-
Review of the process3m 39s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Generating the smoking variables