Closed wyusuf068 closed 4 years ago
I've made edits to usingcchsflow.Rmd
. These really aren't about derived variables (just reviewing the background leading to derived variables.
'DT' isn't working on my computer. The tables are all empty. I'd suggest using DT only when we need to. In usingcchsflow
many of those datatables are small with few columns. They display pretty well without DT.
@wyusuf068 Note that I put a third option for harmonizing age
. This is just to placemark our most common type of transformation.
I modified the comment about accessing cchs data at the very end of usingcchsdata. The whole example works well with the mock data that you created. But let's add an example using the 200 respondent sample at the end. (Doesn't need to be done for this PR).
I’ve tried moving the example of BMI over to 'usingcchsflow.Rmd'. What do you think?
It occurred to me that the user will harmonize BMI and other derived variables just like they do for any other variable. The only additional consideration for them is they need the underlying variables in their dataset (usually).
The Rmd's for variables.csv, variableDetails.csv and dervivedVariables are really reference guides (rather than a true vignette) and instructions about how to create new transformations.
I've made a few more edits to usingcchsflow.Rmd
.
The PR looks good. Suggest merging and making any further modifications in a future PR.
Completion of derived functions R file + vignette. Data folder created for 2003 and 2010 CCHS cycles as .RData files subsetted to 200 observations.