-
Notifications
You must be signed in to change notification settings - Fork 63
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
Feature Request: Function for creating variable pairs like MCRITyML
/MCRITyMN
#2480
Comments
oooohhh i like this!! @pharmaverse/admiral @pharmaverse/admiral_comm what do you think!?! I think this would be a fun function to spin up, but would take some work to finish it out!! who wants it? :) |
The Should we consider moving this issue to |
Worth noting that none of the admiral packages depend on metatools or metacore, and generally we have strayed away from adding that dependency. So I wouldn't add to metatools. |
Should we do both? - enhance metatools/metacore as well as build a function for it in admiral. My metadata is never amazing in the beginning of ADaM creation |
I'm not sure. In |
Thanks @manciniedoardo @bms63 @bundfussr for your inputs.
@manciniedoardo We could guide users to metatools for deriving paired variables, instead of adding dependencies.
@bundfussr Would it be okay to use only the character category without adding the condition? e.g. the current codelist <- tribble(
~AGEGR1, ~AGEGR1N,
"<65", 1,
"65-80", 2,
">80", 3
) If we enhance the metacore argument from create_cat_var(data, codelist/metacore, ref_var, grp_var, num_grp_var = NULL)
I personally prefer the current way, as it relies on metadata rather than hardcoding in the program, which can improve consistency between the program and metadata. But if the new feature is useful for metadata-independent cases, I don’t have a strong preference between building a new function in admiral, enhancing |
If we have a codelist like the following,
I think it depends on the available metadata which way is the best to derive such variables. I would try to avoid duplication of information. If code/decode codelists are available in the metadata, I would specify the conditions and categories in the ADaM script (using We could extend |
I'd be happy to take a shot at this, once we have decided what exactly we want to do. |
HI Stefan - reviewing the discussion it looks like @bundfussr original proposal was agreed upon. We can discuss at next week's meeting if you would like? |
Yeah that sounds good!
…On Thu, Aug 29, 2024 at 4:12 PM Ben Straub ***@***.***> wrote:
HI Stefan - reviewing the discussion it looks like @bundfussr
<https://github.com/bundfussr> original proposal was agreed upon. We can
discuss at next week's meeting if you would like?
—
Reply to this email directly, view it on GitHub
<#2480 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJUWWEVGTLBEYPRBOUGA3GLZT4T45AVCNFSM6AAAAABLA4KDC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJXG44TINBZG4>
.
You are receiving this because you are on a team that was mentioned.Message
ID: ***@***.***>
|
Feature Idea
Many CDISC variable are pairs of character and numeric variables like
MCRITyML
/MCRITyMN
,AVALCATy
/AVALCAyN
,AGEGRy
/AGEGRyN
. Usually the values depend on a condition.At the moment the two variables are derived in two steps, which separates the condition, the character value, and the numeric value. For example
I would propose to implement a function where the condition, the character value, and the numeric value are specified in a
tribble()
-like way:I think it is easier to implement and review such variable this way.
Relevant Input
No response
Relevant Output
No response
Reproducible Example/Pseudo Code
No response
The text was updated successfully, but these errors were encountered: