Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add `ae_listing_placebo` to control placebo-subject drill-down in AE forest plots

クローズ
#174 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@LittleBeannie がすでに取り組んでいます。

2026年10月7日 から。

  • #175 @LittleBeannie による — マージされずにクローズ

評価

この issue はまだ評価されていません。

説明

Summary

Add a logical argument, ae_listing_placebo, to prepare_ae_forestly() so users can choose whether placebo subjects are included in the subject-level AE listings accessed through the interactive forest plot.

Current behavior

The interactive AE forest plot provides drill-down to subject-level AE listings. These listings currently include subjects from all treatment groups, including placebo.

Users cannot exclude placebo subjects from the drill-down listings while retaining them in the forest plot and statistical comparisons.

Proposed enhancement

Introduce:

ae_listing_placebo = TRUE

Expected behavior:

Value AE listing behavior
TRUE Include subjects from all treatment groups, including placebo. Preserve current behavior.
FALSE Include only non-placebo subjects in AE drill-down listings. Do not provide drill-down listings for placebo subjects.

For the example where the treatment variable is TRTA and the placebo label is "Placebo", setting ae_listing_placebo = FALSE should restrict the listing records to TRTA != "Placebo".

Example usage

The existing example orders the treatment groups as "Low Dose" followed by "Placebo", so the placebo reference group is group 2.

meta |>
  prepare_ae_forestly(
    reference_group = 2,
    ae_listing_display = c("USUBJID", "SITEID", "SEX", "RACE", "AGE"),
    ae_listing_placebo = FALSE
  ) |>
  format_ae_forestly() |>
  ae_forestly()

To retain listings for all treatment groups:

meta |>
  prepare_ae_forestly(
    reference_group = 2,
    ae_listing_display = c("USUBJID", "SITEID", "SEX", "RACE", "AGE"),
    ae_listing_placebo = TRUE
  ) |>
  format_ae_forestly() |>
  ae_forestly()

Acceptance criteria

  • Default to TRUE for backward compatibility.
  • When FALSE, exclude placebo-subject records from the drill-down listing data, not merely hide them visually.
  • Keep drill-down available for non-placebo subjects.
  • Leave population denominators, AE counts, incidence estimates, treatment comparisons, confidence intervals, and forest plot results unchanged.
  • Handle AE terms with no eligible non-placebo listing records gracefully, without displaying placebo records.
  • Validate that the argument is a single non-missing logical value.
  • Document how the placebo group is identified. Avoid relying solely on the literal label "Placebo" because treatment labels may be customized. If reference_group is used, clarify the behavior when the reference group is not placebo.

Motivation

This option would let users focus subject-level AE review on non-placebo groups while preserving placebo data in the overall safety analysis and treatment comparisons.

主要言語
R
スター
22
フォーク
6
平均マージ
2日 16時間
マージ済み PR(30日)
16

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Merck/forestly のほかの issue

Merck/forestly の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。