Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recoding for templates #329

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Recoding for templates #329

wants to merge 6 commits into from

Conversation

aspina7
Copy link
Member

@aspina7 aspina7 commented Mar 6, 2025

This is for recoding non-standard data to be able to use the analysis templates - addresses #322

Currently evaluate is sett to FALSE for all code chunks in the recode templates as do not want to run tests on these, given that there is no associated dummy data and thereby all tests will just fail.

these templates will:

  • refer to vignette that walks through the process
  • code chunk for renaming necessary variables
  • code chunk to see variable and values from the standard dictionary
    • (shorten existing study_data_dict_long to just varname, vartype, value)
    • potentially combine with above function to see which variables actually necessary for the template
  • code chunk to see all their unique values from messy data
  • generic recode for factor variables example.
  • generic example for recoding age and other ??

age recoding probably needs checking .... just did quickly

@aspina7 aspina7 requested a review from PBBlomquist March 7, 2025 17:44
@PBBlomquist
Copy link

PBBlomquist commented Mar 11, 2025

I've reviewed and thought some changes were needed for clarity and to align with outbreak recode Rmds.

I've just done the AJS one and put it in a different branch/commit just in case. Changes made are:

  • some chunk rearrangement and simplification to be more straight forward (renamed some chunks as needed)
  • Removal of summarytools as doesn't work
  • Clearer/typo-free explanations
  • Age calculations corrected (note still need to check 2 months = 62 days or 56? Show years at 24 months onwards?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants