You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DESCRIPTION
+18-9Lines changed: 18 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,18 @@
1
1
Package: BayesianPlatformDesignTimeTrend
2
2
Title: Simulate and Analyse Bayesian Platform Trial with Time Trend
3
-
Version: 1.1.3
4
-
Author: Ziyan Wang [aut, cre]
3
+
Version: 1.2.0
4
+
Author: Ziyan Wang [aut, cre],
5
+
David Woods [ctb]
5
6
Maintainer: Ziyan Wang <zw7g20@soton.ac.uk>
6
7
Authors@R:
7
-
person(given = "Ziyan",
8
+
c(person(given = "Ziyan",
8
9
family = "Wang",
9
10
role = c("aut", "cre"),
10
-
email = "zw7g20@soton.ac.uk")
11
+
email = "zw7g20@soton.ac.uk"),
12
+
person(given = "David",
13
+
family = "Woods",
14
+
role = c("ctb"),
15
+
email = "D.Woods@southampton.ac.uk"))
11
16
Description: Simulating the sequential multi-arm multi-stage or platform trial with Bayesian approach using the 'rstan' package, which provides the R interface for the Stan.
12
17
This package supports fixed ratio and Bayesian adaptive randomization approaches for randomization.
13
18
Additionally, it allows for the study of time trend problems in platform trials.
@@ -20,14 +25,14 @@ Description: Simulating the sequential multi-arm multi-stage or platform trial w
20
25
The analysis methods of time trend effect in platform trial are described in:
21
26
Saville et al. (2022) <doi:10.1177/17407745221112013> and
22
27
Bofill Roig et al. (2022) <doi:10.1186/s12874-022-01683-w>.
Copy file name to clipboardExpand all lines: NEWS.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,41 @@
1
+
# Sept 30, 2023, BayesianPlatformDesignTimeTrend version 1.2.0
2
+
## Summary of changes
3
+
- This release corrects the boundary construction formula of OBF boundary;
4
+
- This release adds internal functions of calculating conjunctive power, disconjunctive power and marginal power.
5
+
- This release extend the type of hypothesis testing which are Oneside test and the two side test now;
6
+
- This release implements method of cutoff screening for asymmetric boundary using Bayesian optimization. The cutoff screening for asymmetric boundary is released in this version (including No early stopping boundary, Pocock boundary and OBF boundary). The plot of boundary shape refers to the plot on github: https://github.com/ZXW834/BayesianPlatformDesignTimeTrend.
7
+
- This release implements method of hyperparameter tuning for Trippa's adaptive randomisation approach. There are some flow chats in the tutorial and on the github.
8
+
- This release adds my supervisor David Woods as the contributor to the package.
9
+
10
+
## Bugs
11
+
- In OBF boundary construction, the boundary formula was $\theta_j=\phi \left(\sqrt{\frac{J}{j}c} \right)$ which is not the same as that in the reference which is $\theta_j=\phi \left(\sqrt{\frac{J}{j}}c \right)$. Although the original boundary formula works in trial simulation, the correction is still made.
12
+
13
+
## New feature
14
+
- In previous version, the power function was only for disconjunctive power and FWER. In this version, the conjunctive power `conjuncativepower_or_FWER` and marginal power (per-hypothesis type I error) `perHtypeIerror_marginalpowerfunc` can also be calculated for the used of design evaluation and power optimisation in asymmetric boundary cutoff screening. The function to calculate disconjunctive power is renamed as `disconjunctivepowerfunc`.
15
+
16
+
- In previous version, the hypothesis testing during the interim analysis is $H_0$: $\pi_k = \pi_0$; $H_1$: $\pi_k \neq \pi_0$. Now we add one side test to only conclude for superiority: $H_0$: $\pi_k \leq \pi_0$; $H_1$: $\pi_k > \pi_0$.
17
+
18
+
- In previous version, the cutoff value can only be tuned for symmetric boundary. In this version, asymmetric boundary cutoff screening is added so that user can decide whether to use a more aggressive efficacy boundary with a more aggressive futility boundary (or a more conservative efficacy boundary with more conservative futility boundary). The asymmetric boundary screening process first select the type I error rate contour equal to the target, then pick a cutoff pair (eff, fut) that maximizes the power.
19
+
20
+
- In previous version, the Trippa's adaptive randomisation approach used fixed hyperparameters suggested in their paper. In this version, the hyperparameters a and b are tuned to optimise power when type I error (FWER) is controlled at target. This idea can be found on Trippa's paper (2012). We used a gaussian process model to smooth the contour plot. The pair (a, b) with highest predicted power will be exploit for hyperparameter screening until there are enough point overlapped on the contour plot. In addition, the hyperparameter point (a, b) can be pick in a crude way to save computation time via setting the maximum number of points to be looked at.
21
+
1
22
# Aug 22, 2023, BayesianPlatformDesignTimeTrend version 1.1.3
2
23
This release fix one command in fix effect model analysis of main effect that is confusing.
3
24
4
-
- I fixed the bug in function `resultrtostats`. THe calculation of "stats4" was the sum of main effect and interaction effect when using the model with interaction term (main * stage_continuous / main * stage_discrete). The sum was used to calculate the posterior probability of superior or inferior. However, "stats4" only represents the mean values of main effect in the final output matrix. The wrong value was given to "stats4". This is the same for "stats5" which is the standard errors of the main effect in the model
25
+
## Bugs
26
+
- I fixed the bug in function `resultrtostats`. The calculation of "stats4" was the sum of main effect and interaction effect when using the model with interaction term (main * stage_continuous / main * stage_discrete). The sum was used to calculate the posterior probability of superior or inferior. However, "stats4" only represents the mean values of main effect in the final output matrix. The wrong value was given to "stats4". This is the same for "stats5" which is the standard errors of the main effect in the model
5
27
6
28
# Jun 25, 2023, BayesianPlatformDesignTimeTrend version 1.1.2
7
29
This release fix two bugs.
8
30
31
+
## Bugs
9
32
- I fixed the bug in function `GP.optim` where the formula of information weighed randomisation is wrong.
10
33
- I fixed the bug in function `demo_Cutoffscreening` where the nextcutoff vector for sample may have only one element. This will lead to the error in function `sample` when you only want to sample one value greater than 1. The argument 'ntrials' in each example should be large (> 100) instead 2 to make the example more like an actual simulation example. I use ntrials = 2 in the example to speed up the check process.
11
34
12
35
# Jun 11, 2023, BayesianPlatformDesignTimeTrend version 1.1.1
13
36
This release fix one bug reported by the cran team.
14
37
38
+
## Bugs
15
39
- I fixed the bug in function `GP.optim` where the nextcutoff vector for sample may have only one element. This will lead to the error in function `sample` when you only want to sample one value greater than 1.
16
40
- The argument 'ntrials' in each example should be large (> 100) instead 2 to make the example more like an actual simulation example. I use ntrials = 2 in the example to speed up the check process.
#' @description This function reads in the output matrix of a number of trial replicates to calculate the Family wise error rate or disconjunctive power
30
30
#' @param res A list of output matrix of a number of trial replicates
31
31
#'
32
-
#' @return Family wise error rate or disconjunctive power
# # Check whether the data output conflicts the test type. This will lead to error if the hypothesis test data input are all zero under the alternative
0 commit comments