-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from rpact-com/dev/4.1.1
README updated
- Loading branch information
Showing
12 changed files
with
96 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ | |
## | | ||
## | Contact us for information about our services: [email protected] | ||
## | | ||
## | File version: $Revision: 8508 $ | ||
## | Last changed: $Date: 2025-01-24 09:01:34 +0100 (Fr, 24 Jan 2025) $ | ||
## | File version: $Revision: 8518 $ | ||
## | Last changed: $Date: 2025-01-29 15:42:08 +0100 (Mi, 29 Jan 2025) $ | ||
## | Last changed by: $Author: pahlke $ | ||
## | | ||
|
||
|
@@ -1008,7 +1008,7 @@ SummaryFactory <- R6::R6Class("SummaryFactory", | |
} | ||
} | ||
|
||
if (any(is.nan(formattedValue)) || any(trimws(formattedValue) == "NaN")) { | ||
if (any(is.nan(formattedValue), na.rm = TRUE) || any(trimws(formattedValue) == "NaN", na.rm = TRUE)) { | ||
formattedValue[is.nan(formattedValue) | trimws(formattedValue) == "NaN"] <- NA_real_ | ||
showNA <- TRUE | ||
} | ||
|
@@ -1922,7 +1922,7 @@ SummaryFactory <- R6::R6Class("SummaryFactory", | |
if (!.isDelayedInformationEnabled(design = design) && | ||
((.isTrialDesignInverseNormalOrGroupSequential(design) && | ||
any(design$futilityBounds > C_FUTILITY_BOUNDS_DEFAULT, na.rm = TRUE)) || | ||
(.isTrialDesignFisher(design) && any(design$alpha0Vec < 1)))) { | ||
(.isTrialDesignFisher(design) && any(design$alpha0Vec < 1, na.rm = TRUE)))) { | ||
header <- .concatenateSummaryText( | ||
header, | ||
paste0(ifelse(design$bindingFutility, "binding", "non-binding"), " futility") | ||
|
@@ -3224,7 +3224,7 @@ SummaryFactory <- R6::R6Class("SummaryFactory", | |
) | ||
|
||
if (.isTrialDesignFisher(design)) { | ||
if (any(design$alpha0Vec < 1)) { | ||
if (any(design$alpha0Vec < 1, na.rm = TRUE)) { | ||
summaryFactory$addParameter(design, | ||
parameterName = "alpha0Vec", | ||
parameterCaption = "Futility boundary (separate p-value scale)", | ||
|
@@ -3233,7 +3233,7 @@ SummaryFactory <- R6::R6Class("SummaryFactory", | |
) | ||
} | ||
} else { | ||
if (any(design$futilityBounds > C_FUTILITY_BOUNDS_DEFAULT)) { | ||
if (any(design$futilityBounds > C_FUTILITY_BOUNDS_DEFAULT, na.rm = TRUE)) { | ||
summaryFactory$addParameter(design, | ||
parameterName = "futilityBounds", | ||
parameterCaption = .getSummaryParameterCaptionFutilityBounds(design), | ||
|
@@ -3892,7 +3892,7 @@ SummaryFactory <- R6::R6Class("SummaryFactory", | |
probsH1$rejectPerStage <- probsH1$rejectPerStage[1:(design$kMax - 1)] | ||
} | ||
|
||
if (any(design$futilityBounds > C_FUTILITY_BOUNDS_DEFAULT)) { | ||
if (any(design$futilityBounds > C_FUTILITY_BOUNDS_DEFAULT, na.rm = TRUE)) { | ||
if (is.matrix(probsH1$earlyStop)) { | ||
probsH1$earlyStop <- matrix(probsH1$earlyStop[1:(design$kMax - 1), ], | ||
ncol = ncol(probsH1$earlyStop) | ||
|
@@ -3983,7 +3983,8 @@ SummaryFactory <- R6::R6Class("SummaryFactory", | |
if (any(design$futilityBounds > C_FUTILITY_BOUNDS_DEFAULT, na.rm = TRUE) && | ||
!is.null(designPlan[["futilityPerStage"]]) && | ||
!any(is.na(designPlan[["futilityPerStage"]])) && | ||
any(designPlan$futilityPerStage != 0) && any(designPlan$futilityPerStage > 1e-08)) { | ||
any(designPlan$futilityPerStage != 0) && | ||
any(designPlan$futilityPerStage > 1e-08)) { | ||
summaryFactory$addParameter(designPlan, | ||
parameterName = "futilityPerStage", | ||
parameterCaption = "Exit probability for futility", # under H1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ | |
## | | ||
## | Contact us for information about our services: [email protected] | ||
## | | ||
## | File version: $Revision: 8473 $ | ||
## | Last changed: $Date: 2025-01-13 18:47:32 +0100 (Mo, 13 Jan 2025) $ | ||
## | File version: $Revision: 8518 $ | ||
## | Last changed: $Date: 2025-01-29 15:42:08 +0100 (Mi, 29 Jan 2025) $ | ||
## | Last changed by: $Author: pahlke $ | ||
## | | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ | |
## | | ||
## | Contact us for information about our services: [email protected] | ||
## | | ||
## | File version: $Revision: 8416 $ | ||
## | Last changed: $Date: 2024-11-18 16:13:44 +0100 (Mo, 18 Nov 2024) $ | ||
## | File version: $Revision: 8518 $ | ||
## | Last changed: $Date: 2025-01-29 15:42:08 +0100 (Mi, 29 Jan 2025) $ | ||
## | Last changed by: $Author: pahlke $ | ||
## | | ||
|
||
|
@@ -1512,7 +1512,7 @@ NULL | |
} | ||
|
||
if (!is.null(designCharacteristics$futilityProbabilities) && | ||
any(designPlan$.design$futilityBounds != C_FUTILITY_BOUNDS_DEFAULT)) { | ||
any(designPlan$.design$futilityBounds != C_FUTILITY_BOUNDS_DEFAULT, na.rm = TRUE)) { | ||
designPlan$futilityPerStage <- matrix(designCharacteristics$futilityProbabilities, | ||
nrow = designPlan$.design$kMax - 1 | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ | |
## | | ||
## | Contact us for information about our services: [email protected] | ||
## | | ||
## | File version: $Revision: 8225 $ | ||
## | Last changed: $Date: 2024-09-18 09:38:40 +0200 (Mi, 18 Sep 2024) $ | ||
## | File version: $Revision: 8518 $ | ||
## | Last changed: $Date: 2025-01-29 15:42:08 +0100 (Mi, 29 Jan 2025) $ | ||
## | Last changed by: $Author: pahlke $ | ||
## | | ||
|
||
|
@@ -243,7 +243,7 @@ NULL | |
designPlan$.setParameterType("earlyStop", C_PARAM_GENERATED) | ||
} | ||
if (!is.null(sampleSizeSequential$futilityPerStage) && | ||
any(designPlan$.design$futilityBounds != C_FUTILITY_BOUNDS_DEFAULT)) { | ||
any(designPlan$.design$futilityBounds != C_FUTILITY_BOUNDS_DEFAULT, na.rm = TRUE)) { | ||
designPlan$futilityPerStage <- matrix(sampleSizeSequential$futilityPerStage, | ||
nrow = designPlan$.design$kMax - 1 | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ | |
## | | ||
## | Contact us for information about our services: [email protected] | ||
## | | ||
## | File version: $Revision: 8482 $ | ||
## | Last changed: $Date: 2025-01-15 16:25:01 +0100 (Mi, 15 Jan 2025) $ | ||
## | File version: $Revision: 8518 $ | ||
## | Last changed: $Date: 2025-01-29 15:42:08 +0100 (Mi, 29 Jan 2025) $ | ||
## | Last changed by: $Author: pahlke $ | ||
## | | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
url: https://rpact-com.github.io/rpact/ | ||
|
||
template: | ||
bootstrap: 5 | ||
includes: | ||
in_header: | | ||
<meta name="keywords" content="rpact, adaptive designs, clinical trials, simulation, analysis, rstats, Shiny, r-project, R package"/> | ||
<link href="reference/figures/favicon.ico" rel="icon"/> | ||
<link href="reference/figures/favicon.ico" rel="apple-touch-icon"/> | ||
<link href="reference/figures/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon"/> | ||
home: | ||
links: | ||
- text: RPACT Connect | ||
href: https://connect.rpact.com | ||
- text: RPACT Cloud | ||
href: https://cloud.rpact.com | ||
- text: rpact R package website | ||
href: https://www.rpact.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.