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

Suggestion for creation of new renaming functions to facilitate GSED D-score calculations #51

Open
jmseiden opened this issue Apr 18, 2024 · 1 comment

Comments

@jmseiden
Copy link
Collaborator

With release of GSED (and particularly the HF), there will be increasing demand to score data, and particularly by less technically savvy users. The app currently makes the process of scoring GSED data much simpler, but still requires the user to rename variable to the GSED 9-character variable name lexicon prior to doing so. To derive D-scores from GSED-HF data, it also requires some slightly complicated data manipulation due to the nature of overlapping variables on different forms which must be named differently.

To simplify this process, I'm proposing some changes/enhancements to the app and package:

  1. The addition of a rename_sf_lf function which is similar to the rename_gcdg_gsed function. This function would convert standardized SF and LF variable names (that come directly from the app) and convert them to the gsed lexicon. This would be a very simple function that could be added to the Shiny app to allow users to upload data scored from the tool with minimal manipulation.

  2. The addition of a rename_hf function which again is similar to the rename_gcdg_gsed function. The difference for this function would be that it also restructures/combines variables across age forms. For example, HF001 (gh1sec001) appears on both the 0-2 month and the 3-5 month age band forms. It's not yet clear how these will be differentiated in published materials (something like age00_02_hf001 and age03_05_hf001, but prior to scoring these duplicated variables should be collapsed into a single variable and renamed accordingly.

@stefvanbuuren
Copy link
Collaborator

Good idea.

  1. Do we have a list of standardised SF and LF names that come from the app? From there on, it should be relatively straightforward to write the rename_sf_gsed() and rename_lf_gsed() functions.
  2. We have done similar transformation for ASQ in the past. In general, we try to evade renaming by preserving the gsed naming with the item, but such may not work in all environments. If gsed names are not preserved, then writing rename_hf_gsed() would require a table that maps the local form-name and the local item-name to the gsed-name. Do we have such a mapping?

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

No branches or pull requests

2 participants