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

CRAN task view proposal: ClinicalTrials #59

Open
ya-wang-git opened this issue Oct 26, 2023 · 23 comments
Open

CRAN task view proposal: ClinicalTrials #59

ya-wang-git opened this issue Oct 26, 2023 · 23 comments
Assignees

Comments

@ya-wang-git
Copy link

Prior to this proposal we have reached out to the CRAN task view editors regarding a possible update of the existing ClinicalTrial task view. They advised using this issue to propose a relaunch that can then be discussed.

Scope

This task view aims to collect information on R packages for clinical trial design, monitoring, analysis and reporting.

Packages

  • Our plan is to start out from the existing task view (link) and use our pre-specified workflow to determine whether a package should be kept or removed from the task view. The workflow could comprise different steps, e.g. first search according to a broad keywords list, and second manual review.
  • In addition, we would merge lists of relevant clinical trial R packages being used by openstatsware members and their organizations and include those in the task view.
  • The existing task view groups R packages into the following categories: (1) design and monitoring, (2) design and analysis, (3) analysis for specific designs, (4) analysis in general, (5) meta-analysis. We propose to have more hierarchies such that packages of the same theme can be grouped together and become easier to explore. For example, within study design, packages for dose-finding purpose can be grouped together as a subsection, and those for the sample size calculation could be another subsection.
  • In addition, we propose to have a “Getting Started” section at the beginning of the task view to point users to relevant packages or introduction material.
  • In a future version, we would consider adding further metadata information, e.g. in the form or labels or links, regarding the quality of the listed R packages. We note that this could also be done on a more general level across CRAN task views later.

Overlap

  • Potential overlap with the task view ExperimentalDesign whose focus is on R packages for experimental design and analysis of experimental data: Our proposed task view focuses more on R packages that are designed for clinical trials.
  • Potential overlap with the task view Survival which provides a comprehensive list of R packages for the analysis of time to event data: Again, our proposed task view focuses only on R packages that are designed for clinical trials.
  • Potential overlap with the task view Meta-analysis which covers R packages for meta-analysis of summary statistics from primary studies. Similarly, our proposed task view focuses only on R packages that are designed for clinical trials.
  • For R packages that are designed for the analysis of pharmacokinetic data, we would refer users to the existing task view Pharmacokinetics by providing cross reference (in the same way as currently the Pharmacokinetics task view refers back to Clinical Trials task view).

Maintainers

  • The maintainers are all from the openstatsware working group.
  • Principal maintainers: Ya Wang, Elias Laurin Meyer
  • Co-maintainers: Laura Pascasio Harris, Orla Doyle, Wilmar Igl
@zeileis
Copy link
Contributor

zeileis commented Oct 26, 2023

Ya @ywang-gilead et al., thank you for the initiative and, as previously discussed via e-mail, I think that a relaunch of the task view would be good to make it more active and dynamic again. Also, I think it's great to build on existing initiatives under the umbrella of the ASA and R Consortium. However, some more work is needed before we can move forward:

  • The package inclusions/exclusion guidelines are a too vague. You say that you want "more hierarchies" but it is unclear to me what is the intended structure of the task view. And how will this help to determine whether a package should be included in the task view or not.
  • Similarly, more concrete discussion of how to handle the overlap with other task views is needed. For example, the ExperimentalDesign task view has an explicit list of packages for design of clinical trials and they suggest that this should be moved to the ClinicalTrials task view. Do you concur with this list or would you resolve this differently? Explain your strategy. My impression is that the issues are similar for Pharmacokinetics where there could be more overlap while Survival and MetaAnalysis are separated a bit more clearly.
  • You indicate that you want to move in the direction of labeling the quality of R packages, both within this task view and even across task views. Note that this is not within the scope CRAN Task Views. As the Documentation says: "The views are intended to have a sharp focus so that it is sufficiently clear which packages should be included (or excluded) - and they are not meant to endorse the "best" packages for a given task". The Proposal guidelines explain this in a bit more detail:

    Ratings: Task views should not rate the packages or endorse certain "best" packages but rather give an overview of what is available. A bit of emphasis to the more important packages can be given in two ways: (1) The most important packages can be flagged as "core" packages. (2) In the information text the more important packages can be listed first in the respective sections.

  • Regarding the maintainers: First, there has to be a single principal maintainer who is the principal contact for the task view. Thus, it's not possible to have two principal maintainers. Second, having several people from the openstatsware working group is fine because this is already a rather diverse intiative across companies. But rather than having all five contributors from the openstatsware group, I think it would be good to have some outside co-maintainers as well, ideally also including someone from academia.

You don't have to respond to my comments right away but we can also wait for some more comments from my fellow CRAN Task View Editors @rsbivand @eddelbuettel @tuxette

Also I'm tagging here the maintainers of the other task views mentioned in case they want to add to the discussion: @ugroempi @tylermorganwall @aallignol @deweyme @wviechtb @billdenney

@billdenney
Copy link

I don't know the specific quality metrics being considered.
But, I have seen the quality metrics mentioned in multiple ways for R packages used in pharmaceutical development. The ways that I've seen them used align with some R core principles, and they are not necessarily ranking or endorsement but they are exposing objective quality metrics such as test coverage percent, maintenance activity, and duration of time on CRAN.

As it relates to the Pharmacokinetics view, I would assume that the Clinical Trials view would reference the Pharmacokinetics view. And, I would assume that there would be little overlap between packages.

@deweyme
Copy link

deweyme commented Oct 26, 2023 via email

@tuxette
Copy link
Contributor

tuxette commented Oct 26, 2023

Thank you for the proposal. I have not much to add to @zeileis 's comments. There might be a minor overlap with Epidemiology as well.

@ya-wang-git
Copy link
Author

Thanks a lot for the comments. We have incorporated them into our revised proposal as follows.

Scope

This task view aims to collect information on R packages for clinical trial design, monitoring, analysis and reporting.

Packages

  • Our plan is to start out from the existing task view (link). A package will be flagged as the “core” package if it provides a wide range of functions (e.g., clinfun can be used for study design, data analysis and sample size calculation), or it is a classic package and has been on CRAN for a long time (e.g., survival), or it has been the dependency package of many other packages (e.g., survival). A package will be excluded if all maintainers find it difficult to understand.
  • In addition, we would merge lists of relevant clinical trial R packages being used by openstatsware members and their organizations and include those in the task view.
  • The existing task view groups R packages into the following categories: (1) design and monitoring, (2) design and analysis, (3) analysis for specific designs, (4) analysis in general, (5) meta-analysis. We propose to have more theme-based hierarchies such that packages of the same theme can be grouped together and become easier to explore. For example, within study design, packages for dose-finding purpose can be grouped together as a subsection, and those for the sample size calculation could be another subsection. Proposed themes are as follows:
    • Design
      • Adaptive study design
      • Group sequential design
      • Dose finding
      • Randomization
      • Sample size calculation
      • Simulation
    • Monitoring
    • Analysis
      • General analysis
      • Longitudinal data analysis
      • Survival analysis
      • Meta-analysis
    • Reporting
  • In addition, we propose to have a “Getting Started” section at the beginning of the task view to point users to relevant packages or introduction material.

Overlap

  • Potential overlap with the task view ExperimentalDesign whose focus is on R packages for experimental design and analysis of experimental data: Our proposed task view focuses more on R packages that are designed for clinical trials. For overlap packages, we propose to discuss and align with its maintainers.
  • Potential overlap with the task view Survival which provides a comprehensive list of R packages for the analysis of time to event data: Again, our proposed task view focuses only on R packages that are designed for clinical trials. And we propose to give cross reference to the Survival task view.
  • Potential overlap with the task view Meta-analysis which covers R packages for meta-analysis of summary statistics from primary studies. Similarly, our proposed task view focuses only on R packages that are designed for clinical trials. And we propose to give cross reference to the Meta-analysis task view.
  • For R packages that are designed for the analysis of pharmacokinetic data, we would refer users to the existing task view Pharmacokinetics by providing cross reference (in the same way as currently the Pharmacokinetics task view refers back to Clinical Trials task view).

Maintainers

  • We have five maintainers from openstatsware and one from academia.
  • Principal maintainer: Ya Wang (Gilead Sciences)
  • Co-maintainers:
    • Elias Laurin Meyer (Berry Consultants)
    • Laura Pascasio Harris (Denali Therapeutics)
    • Orla Doyle (Novartis)
    • Wilmar Igl (ICON)
    • Thomas Jaki (Professor of Statistics at MRC Biostatistics Unit and University of Regensburg)

@wviechtb
Copy link

I have no general objections to the proposal. As co-maintainer of the Meta-analysis task view, I will just reiterate what @deweyme already touched on. It isn't really clear to me how one would define an R package for meta-analysis that is "designed for clinical trials". The same applies to the potential overlap with other task views (like ExperimentalDesign and Survival and 'Longitudinal data analysis' also overlaps with the MixedModels task view), that is, how does one determine whether a package from these other task views is designed for clinical trials?

@tuxette tuxette self-assigned this Jan 16, 2024
@tuxette
Copy link
Contributor

tuxette commented Jan 16, 2024

@ywang-gilead : Thank you for your answer and the clarification / corrections. I think that they cover most of @zeileis 's comments. Additional remarks:

  • Your choices for core packages sound relevant but you still have to clarify inclusions/exclusion guidelines (probably by a short paragraph at the beginning of the task view). In relation with @wviechtb 's comment, I agree that it will not always be easy to define if an R package is a better fit for ClinicalTrial or for some other related task view. However, linking the other task view might be a solution (in combination with duplicating some of the most important packages if necessary). For instance, https://cran.r-project.org/web/views/OfficialStatistics.html#imputation has a link, a short discussion, and highlights two particularly relevant packages for both OfficialStatistics and MissingData.

  • Your proposal for themes should indeed clarify the task view. Depending on the number of packages in each theme, note that they can just be bullet "titles" in a list, like in https://cran.r-project.org/web/views/SpatioTemporal.html (in order to not overload the task view with many subsections).

  • Your proposal for a “Getting Started” section at the beginning of the task view is OK with me but be careful that the main point of the task view is to provide information on CRAN packages (so do not overload it with material on the topic). Also, as already pointed by @zeileis , this section should not sound like it endorses the "best" packages. For instance, https://cran.r-project.org/web/views/FunctionalData.html has a similar section, which presents the most general packages for the topic.

  • As far as I can tell, you complied to the initial request on maintainers.

I let @zeileis @rsbivand @eddelbuettel react as well but I think that the proposal is interesting and that you can go on working on it.

@mstackhouse
Copy link

Hi @ywang-gilead,

We were directed here through our proposal for a new task view for the pharmaverse collection of packages, which we've submitted here. Per @zeileis, the suggestion is that may be logical to fold our collection of packages into the updates relevant to this proposal.

We've drafted the task view, which you can additionally review here and see why we've suggested a specific scope of packages.

Could you please share your thoughts on if/how you see value in combining these packages within the ClinicalTrials task view?

@ya-wang-git
Copy link
Author

Hi @mstackhouse ,

Thanks a lot for the additional information. I'm thinking of scheduling a meeting for us (CTV ClinicalTrials maintainers and pharmaverse maintainers) to discuss the possibility to combine these two task views and how we could collaborate. I will send out an email to everyone and hopefully we can find some time next week that works for all of us. Does that sound good to you?

@mstackhouse
Copy link

Just wanted to leave a note here that both groups of maintainers met as a team. We mutually decided that right now it's better to keep our proposed task views separate and reassess in the future if it makes sense to combine them. We will continue to address feedback in #60

@wiligl
Copy link

wiligl commented Mar 12, 2024

Hi, I am not sure that the current Task View concept as a narrative list of packages for a specific scope is the best solution to inform users of relevant packages and whether this will scale with the increasing number of packages. I would suggest to allow package developers to add a field in the description file which says in which task views their package should be listed. The Task view could then be compiled automatically, eg the package name and description (oneliner) could be automagically extracted from the Description file. The Task view page/table could also show additional quality attributes for each package to guide users (first release, last release, number of users, user rating, author credibility, ...).

@deweyme
Copy link

deweyme commented Mar 12, 2024 via email

@zeileis
Copy link
Contributor

zeileis commented Mar 12, 2024

Wilmar, thanks for your feedback. There are indeed different potential solutions for generating topic-related lists of packages - with differents strengths and different drawbacks. As Michael already explained, CRAN Task Views aim to be curated lists with a sharp focus. When package maintainers can self-select their package into the task views, this sharp focus would likely be lost. Both because some less relevant packages would be included - but also because some very relevant packages would not be. To learn more about the ideas and strategies behind the CRAN Task View Initiative, you can have a look at this paper: doi10.48550/arXiv.2305.17573:

@tuxette
Copy link
Contributor

tuxette commented Aug 16, 2024

Hi @ywang-gilead and col. We were very close to a final version for this proposal: do you want to implement the last suggested changes (see comments since your last proposal) so that we can proceed to the publication?

@ya-wang-git
Copy link
Author

Hi @tuxette, we will implement the last suggested changes and provide a draft task view for review.

@zeileis
Copy link
Contributor

zeileis commented Dec 19, 2024

Hi @ya-wang-git et al., we essentially did not have any updates over the entire year and there still isn't a proper draft. Maybe you want to include the work on the task view in your new year's resolution for 2025? Or when there is no interest or no time anymore, we should close this issue.

@ya-wang-git
Copy link
Author

Hi @zeileis, please find our draft here. Our initial plan was to submit it for your feedback before Christmas. Please review and let us know if you have any comments or suggestions.

@zeileis
Copy link
Contributor

zeileis commented Dec 19, 2024

Thanks for the draft @ya-wang-git, good to know that this is still alive. From a quick glance, the draft looks promising, thank you and the co-maintainers for your work on this. It is very much appreciated.

Regarding the "submission for feedback before Christmas": I think that everyone is about to start into their well-deserved holidays and hence I don't expect any feedback before everyone is returning to work next year...

@ya-wang-git
Copy link
Author

Thanks a lot @zeileis. Just to clarify, the Christmas deadline is for us to finalize and send it out, not for you to complete the review and provide feedback. Please feel free to take your time with the review. Wishing you a joyful holiday season!

@zeileis
Copy link
Contributor

zeileis commented Dec 19, 2024

I understand. However, I'm not fond of putting things on other people's to-do lists right before the holidays. In my opinion it's unnecessarily stressful for everyone involved...

@ya-wang-git
Copy link
Author

Thanks a lot for sharing your perspective. I completely understand, and I'll be more mindful of this moving forward.

@tuxette
Copy link
Contributor

tuxette commented Dec 25, 2024

Thanks for your proposal. I reviewed it and provide a few recommendations below:

  • The inclusion / exclusion criteria are described in just one sentence and distinction with closely related TV is not explained (these TV are just listed). I think that it would be best if TV scope and inclusion / exclusion criteria are sharpened in the introduction.
  • I don't know what was the intended format in the paragraph just before "Bioequivalence" but "comment: <> (- " is probably not what was intended.
  • Please use the function doi() whenever relevant. In addition, it is unclear why certain articles are cited (on which criteria is it decided to cite certain articles and not others) and citations are not identically formatted in the task view (certain includes the journal names and others not, for instance).
  • I am not sure that very general packages, such as Hmisc (cited two times with the exact same description!), nmle, lme4, ..., are a suitable choice for a task view. Similarly, mice is not designed for clinical trials specifically and already cited in MissingData TV.
  • In general, the package description is generally too long (e.g., among others lrstat).
  • Could you please provide a bit of context for the link provided in the Link section?
  • I did not check them all but I remarked that some packages are cited several times with the same description: You should remove one of the two descriptions (e.g., lrstat).

@deweyme
Copy link

deweyme commented Dec 30, 2024

As far as the meta-analysis section is concerned the following occur to me

  • The two packages meta and metafor have functionality which has a large intersection and this does not come over to me in the descriptions. They do each have their own additional features of course.
  • I am not sure that I would mention rmeta as it is rather limited compared to meta or metafor
  • I had been thinking about the issue raised earlier in commentary here of whether there were any clinical trial specific aspects to meta-analysis. On reflection I think that when people developed what they call multiple treatment comparison they had trials at the front of their minds and although the methods can be used for any design in the primary study I wonder whether including netmeta might be helpful. It does seem to me to be the most fully featured, at least in a frequentist framework.

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

8 participants