Description Usage Arguments Value Author(s) Examples
The function will pull in the appropriate smoking variables (SMK92, SMK97, and the CIGNOW variables) and recode them into never/current/former/missing smoking status.
1 |
sex |
Character vector, "BOTH", "MEN", or "WOMEN". Not case sensitive |
initialPath |
File path: defaults to "s:/cps", but can change to run locally if needed. |
Returns a data frame with 12 variables: $ID - 14-digit CPS2 ID $SMOKE92-$SMOKE15 - Smoking status variables for each survey year
Brian Carter
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.