-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
intended use #105
intended use #105
Conversation
…le-subtitle-and-footnotes@main
eliminate intermediate variables rename arg
Minimum allowed coverage is Generated by 🐒 cobertura-action against 6018f0d |
@waddella |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments otherwise ready to merge. Thank you for the hard work.
vignettes/layouts.Rmd
Outdated
Hence these layouts define a table pre-data. Note that pruning and sorting are currently not performed in the layout space in `rtables` but rather on the actual table objects. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add that in general, we try to make the layout function independent from the data, in the sense that they shouldn't take a dm
or part of a dm
object as an argument. Indeed, there is frequently a temptation to extract data from the dm
object (for instances labels) inside the layout function and this is a bad idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see my suggestion above
vignettes/layouts.Rmd
Outdated
* `chevron` exports the layout functions for each table creating *tlg-function* | ||
* these layouts are useful to understand how table is created and what variables are required in the data to create a table using the layout | ||
* the table creation functions focus the main part of their code on building, sorting and pruning the table | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a word about headers and footnotes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please see my my suggestion below
1. they produce a narrow defined output (currently standards in Roche GDS). Note, that the naming convention | ||
`<gds template id>_<i>` indicates that a Roche GDS defined standard may have different implementations. Or, | ||
alternatively, a GDS template id can be regarded as a *guideline* and the function name in `chevron` as a | ||
*standard*. | ||
1. have very few arguments to modify the standard. Generally, arguments may change the structure of the table (arm | ||
variable, which variables are summarized) but not parameterize the cell content (i.e. alpha-level for p-value). | ||
1. have always the first argument `adam_db` which is the collection of ADaM datasets (`ADSL`, `ADAE`, | ||
`ADRS`, etc.). Please read the *The adam_db Argument* vignette in this package for more details. | ||
1. have a `.study` argument, read the *The .study argument* vignette for more detail. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. they produce a narrow defined output (currently standards in Roche GDS). Note, that the naming convention | |
`<gds template id>_<i>` indicates that a Roche GDS defined standard may have different implementations. Or, | |
alternatively, a GDS template id can be regarded as a *guideline* and the function name in `chevron` as a | |
*standard*. | |
1. have very few arguments to modify the standard. Generally, arguments may change the structure of the table (arm | |
variable, which variables are summarized) but not parameterize the cell content (i.e. alpha-level for p-value). | |
1. have always the first argument `adam_db` which is the collection of ADaM datasets (`ADSL`, `ADAE`, | |
`ADRS`, etc.). Please read the *The adam_db Argument* vignette in this package for more details. | |
1. have a `.study` argument, read the *The .study argument* vignette for more detail. | |
1. they produce a narrow defined output (currently standards in Roche GDS). Note, that the naming convention | |
`<gds template id>_<i>` indicates that a Roche GDS defined standard may have different implementations. Or, | |
alternatively, a GDS template id can be regarded as a *guideline* and the function name in `chevron` as a | |
*standard*. | |
2. have very few arguments to modify the standard. Generally, arguments may change the structure of the table (arm | |
variable, which variables are summarized) but not parameterize the cell content (i.e. alpha-level for p-value). | |
3. have always the first argument `adam_db` which is the collection of ADaM datasets (`ADSL`, `ADAE`, | |
`ADRS`, etc.). Please read the *The adam_db Argument* vignette in this package for more details. | |
4. have a `.study` argument, read the *The .study argument* vignette for more detail. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the numbering happens automatically in markdown
validate_dm(adam_study_data) | ||
``` | ||
|
||
Note that the keys are defined in the data analysis plan at Roche. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe a link with an example if it is possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will leave it out as it is an internal resource. This is something to revisit though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BFalquet thanks for reviewing, please have a look at my suggested changes
validate_dm(adam_study_data) | ||
``` | ||
|
||
Note that the keys are defined in the data analysis plan at Roche. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will leave it out as it is an internal resource. This is something to revisit though.
1. they produce a narrow defined output (currently standards in Roche GDS). Note, that the naming convention | ||
`<gds template id>_<i>` indicates that a Roche GDS defined standard may have different implementations. Or, | ||
alternatively, a GDS template id can be regarded as a *guideline* and the function name in `chevron` as a | ||
*standard*. | ||
1. have very few arguments to modify the standard. Generally, arguments may change the structure of the table (arm | ||
variable, which variables are summarized) but not parameterize the cell content (i.e. alpha-level for p-value). | ||
1. have always the first argument `adam_db` which is the collection of ADaM datasets (`ADSL`, `ADAE`, | ||
`ADRS`, etc.). Please read the *The adam_db Argument* vignette in this package for more details. | ||
1. have a `.study` argument, read the *The .study argument* vignette for more detail. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the numbering happens automatically in markdown
vignettes/layouts.Rmd
Outdated
Hence these layouts define a table pre-data. Note that pruning and sorting are currently not performed in the layout space in `rtables` but rather on the actual table objects. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see my suggestion above
vignettes/layouts.Rmd
Outdated
* `chevron` exports the layout functions for each table creating *tlg-function* | ||
* these layouts are useful to understand how table is created and what variables are required in the data to create a table using the layout | ||
* the table creation functions focus the main part of their code on building, sorting and pruning the table | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please see my my suggestion below
including data pre-processing