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

Add support for population selection based on predictive/posterior probabilities in getSimulationEnrichmentMeans/Rates/Survival #32

Closed
fpahlke opened this issue Mar 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@fpahlke
Copy link
Member

fpahlke commented Mar 28, 2024

Originally opened by xinzhn

I am wondering if it would be possible to add an additional option (e.g, userDefined) for the argument effectMeasure in getSimulationEnrichmentMeans/Rates/Survival, to allow a user defined function based on effect measures other than effectEstimate and testStatistic for selectPopulationsFunction. Examples for such alternatives are population-specific predictive probabilities and subgroup-specific posterior probabilities1. This might be implemented by providing additional arguments for the customized function selectPopulationsFunction to facilitate the calculation for both type of probabilities.

Just a thought for consideration: it may be convenient to borrow some arguments from calcSubjectsFunction (customized function for sample size re-calculation), but to provide for populations as well as subgroups. To be specific, we may need

  • thetaH1, overallEffects, and stDevH1 for continuous endpoints.
  • piTreatmentH1, piControlH1, overallRatesTreatment, and overallRatesControl for binary endpoints.
  • thetaH1 and overallEffects for survival endpoints.

Footnotes

  1. Brannath, W., Zuber, E., Branson, M., Bretz, F., Gallo, P., Posch, M., and Racine-Poon, A. (2009), “Confirmatory adaptive designs with Bayesian decision tools for a targeted therapy in oncology,” Statistics in Medicine, 28, 1445–1463.

fpahlke added a commit that referenced this issue May 27, 2024
…ecalculation rules to the setting of binary endpoints according to [Bokelmann et al. (2024)](https://doi.org/10.1186/s12874-024-02150-4)

* The `getSimulationMultiArmMeans()`, `getSimulationMultiArmRates()`, and `getSimulationMultiArmSurvival()` functions now support an enhanced `selectArmsFunction` argument. Previously, only `effectVector` and `stage` were allowed as arguments. Now, users can optionally utilize additional arguments for more powerful custom function implementations, including `conditionalPower`, `conditionalCriticalValue`, `plannedSubjects/plannedEvents`, `allocationRatioPlanned`, `selectedArms`, `thetaH1` (for means and survival), `stDevH1` (for means), `overallEffects`, and for rates additionally: `piTreatmentsH1`, `piControlH1`, `overallRates`, and `overallRatesControl`.
* Same as below for`getSimulationEnrichmentMeans()`, `getSimulationEnrichmentRates()`, and `getSimulationEnrichmentSurvival()`. Specifically, support for population selection with `selectPopulationsFunction` argument based on predictive/posterior probabilities added (see [#32](#32))
* Issues [#25](#25), [#35](#35), and [#36](#36) fixed
* Minor improvements
@fpahlke fpahlke mentioned this issue May 28, 2024
@fpahlke
Copy link
Member Author

fpahlke commented May 28, 2024

Feature implemented in branch dev/4.0.0

@fpahlke fpahlke closed this as completed May 28, 2024
@fpahlke fpahlke added the enhancement New feature or request label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant