D-score / dscore

D-score for Child Development
https://d-score.org/dscore/
GNU Affero General Public License v3.0
8 stars 0 forks source link

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

Open jmseiden opened 6 months ago

jmseiden commented 6 months ago

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 commented 4 months ago

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?