liud4 / rVMAP

Data Management code for VMAC-MAP study
Other
3 stars 0 forks source link

MAP Data Derivation #3

Closed liud4 closed 5 years ago

liud4 commented 6 years ago

It seems "enrolled.dx.factor" does not have a label.

omair-a-khan commented 6 years ago

I looked into this and it is because there is no variable by the name of enrolled_dx_factor in any of the epoch0 or epoch1 projects. Since the label is coming from the REDCap metadata, this is one of the variables we will need to manually add a label for. I am being cognizant of this while I code for this package. For example, see today's commit for missingtoNA.R that deals with the issue of conflict of adding a labelled attribute to the class of a vector.

Would you like me to create a new MAP merge and manually add that in @liud4?

liud4 commented 6 years ago

This variable is defined as the one of the baseline variable that should not change over time. The corresponding variable that will change with epoch is named diagnosis.factor (which comes from the metadata).

We could just add label where this variable is defined in the main program (the rmd file).

liud4 commented 6 years ago

Please make sure to add tot.complaint.gifford.46 and AD signature related derivations.

liud4 commented 6 years ago

Please add CoW derivation.

liud4 commented 6 years ago

Derivation for np.tmtb.trun.log is added in neuropsych.R (line 62).

omair-a-khan commented 6 years ago

Derivation for np.tmtb.trun.log is added in neuropsych.R (line 62).

@liud4, is this a change that you created? I don't have a script called "neuropsych.R" so perhaps you didn't make the change in the package itself. The correct file is "derive_neuropsych.R" and if you tell me the change made for deriving np.tmtb.trun.log, I can add it in.