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
+11-12Lines changed: 11 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,25 @@
1
1
Package: BayesianPlatformDesignTimeTrend
2
-
Title: Simulate and analyse Bayesian Platform Trial with time trend
3
-
Version: 1.0.0
2
+
Title: Simulate and Analyse Bayesian Platform Trial with Time Trend
3
+
Version: 1.0.1
4
4
Author: Ziyan Wang [aut, cre]
5
5
Maintainer: Ziyan Wang <zw7g20@soton.ac.uk>
6
6
Authors@R:
7
7
person(given = "Ziyan",
8
8
family = "Wang",
9
9
role = c("aut", "cre"),
10
10
email = "zw7g20@soton.ac.uk")
11
-
Description: Simulating the multi-arm multi-stage or platform trial with Bayesian approach using the 'rstan' package, which provides the R interface for to the Stan.
12
-
The randomisation approach in this package are fix ratio and Bayesian adaptive randomisation.
13
-
In addition, the time trend problem of platform trial can be studied in this package.
14
-
There is a demo for multi-arm multi-stage trial with two different null scenario and a demo for Bayesian trial cutoff screening.
11
+
Description: Simulating the multi-arm multi-stage or platform trial with Bayesian approach using the 'rstan' package, which provides the R interface for the Stan.
12
+
This package supports fixed ratio and Bayesian adaptive randomization approaches for randomization.
13
+
Additionally, it allows for the study of time trend problems in platform trials.
14
+
There are demos available for a multi-arm multi-stage trial with two different null scenarios, as well as for Bayesian trial cutoff screening.
15
15
The Bayesian adaptive randomisation approaches are described in:
16
16
Trippa et al. (2012) <doi:10.1200/JCO.2011.39.8420> and
17
-
Wathen et al. (2017) <doi:10.1177/1740774517692302>
18
-
The randomisation algorithm is described in
19
-
Zhao W <doi:10.1016/j.cct.2015.06.008>
17
+
Wathen et al. (2017) <doi:10.1177/1740774517692302>.
18
+
The randomisation algorithm is described in:
19
+
Zhao W <doi:10.1016/j.cct.2015.06.008>.
20
20
The analysis methods of time trend effect in platform trial are described in:
21
21
Saville et al. (2022) <doi:10.1177/17407745221112013> and
22
-
Bofill Roig et al. (2022) <doi:10.1186/s12874-022-01683-w>
22
+
Bofill Roig et al. (2022) <doi:10.1186/s12874-022-01683-w>.
* Added a `NEWS.md` file to track changes to the package.
1
+
# Apr 25, 2023, BayesianPlatformDesignTimeTrend version 1.0.1
2
+
## Major changes
3
+
- I added a check command for max.ar which is the upper boundary for randomisation ratio for each arm. The command is added in the MainFunction.R. Details are shown below.
4
+
- #-max.ar check
5
+
if (1 - max.ar > 1/K){
6
+
stop("Error: The lower allocation ratio should be at least 1/K. Please check the number of arm at the beginning and the max.ar")
7
+
}
8
+
9
+
- Another change is the randomisation ratio adjustment in the Simulation_AdaptiveRandomisationmethodRatioCalc.R.
10
+
11
+
- I modified the randomisation ratio adjustment command for Thall's approach.
12
+
13
+
- ##----Original code------ (This code only protects the control arm's allocation ratio)
Copy file name to clipboardExpand all lines: R/MainFunction.R
+13-68Lines changed: 13 additions & 68 deletions
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,8 @@
3
3
#' @param ii Meaning less parameter but required for foreach function in doParallel package
4
4
#' @param response.probs A vector of true response probability for each arm. Default response.probs = c(0.4, 0.4).
5
5
#' @param ns A vector of accumulated number of patient at each stage. Default is ns = c(30, 60, 90, 120, 150).
6
-
#' @param max.ar The upper boundary for randomisation ratio for each arm. Default is 0.75 for a two arm trial.
7
-
#' @param rand.type The method of applying patient allocation with a given randomisation probability vector. Default is "Urn".
6
+
#' @param max.ar The upper boundary for randomisation ratio for each arm. Default is 0.75 for a two arm trial. The minimum value depends on K where 1 - max.ar <= 1/K
7
+
#' @param rand.algo The method of applying patient allocation with a given randomisation probability vector. Default is "Urn".
8
8
#' @param max.deviation The tuning parameter for Urn randomisation method. Default is 3.
9
9
#' @param Stopbound.inf The list of stop boundary information for more see \code{\link{Stopboundinf}}
10
10
#' @param Random.inf The list of Adaptive randomisation information for more see \code{\link{Randomisation.inf}}
#Debugged for K arm by Ziyan Wang on 12:00 26/07/2022 for three arm. Used to be treatmentindex = treatmentindex[-treatmentdrop]
550
-
#Debugged for K arm by Ziyan Wang on 18:58 26/07/2022 for more than 3 arm. Used to be treatmentindex = treatmentindex[!(treatmentindex==treatmentdrop)]
0 commit comments