Skip to content

Adding variables

Sido Haakma edited this page Mar 2, 2020 · 8 revisions

If you can not do the analysis that you want to do with the available variables in the current dictionaries you can amend the dictionaries. We have now to dictionaries which consist of 4 tables each.

  • core variables

    • non-repeated variables
    • monthly-repeated variables
    • yearly-repeated variables
    • trimister variables
  • outcome variables

    • non-repeated variables
    • monthly-repeated variables
    • yearly-repeated variables
    • weekly-repeated variables

Prerequisites

The procedure how to amend is displayed in this instruction video:

Or you can run the steps below:

  • Open the R-folder in the file-tree
  • Open the data-folder in the file-tree
  • Select the dictionary you want to amend
  • Select the version you want to amend]
  • Select the table you want to amend and select "View file"
  • (in Excel) Amend the variables and categories
  • (in Excel) Save and quit
  • In the git-tab the file is now open]
  • Open the DESCRIPTION-file in on the project-root in the file-tree
  • Bump a minor version (so x.X.x) capital X is the minor version
  • Amend the changelogs (depending on if you amended the core- or outcome variables Changelogs are situated on the project-root as well
  • Save the changelogs
  • Now you need to commit the changes (check: https://github.com/lifecycle-project/analysis-tutorials/blob/master/GIT-WORKFLOW.md)
  • Open a pull-request on Github (check: https://github.com/lifecycle-project/analysis-tutorials/blob/master/GIT-WORKFLOW.md)
  • Release the package