-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit 'fe63fe14' into release
- Loading branch information
Showing
15 changed files
with
56 additions
and
34 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
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,3 +1,3 @@ | ||
Version: 1.0.0 | ||
Date: 2024-04-17 09:04:51 UTC | ||
SHA: 6a30f4384d9d15cb292b9d25e45a868477d30606 | ||
Version: 1.0.1 | ||
Date: 2024-09-18 06:43:47 UTC | ||
SHA: b1a16105f7008089bce6302cb9c54c41f40eb088 |
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
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,10 +1,8 @@ | ||
chackoStatistic <- function(x_t, n, k) { | ||
x_bar <- x_t[, "x"] | ||
t <- x_t[, "t"] | ||
m <- length(unique(x_bar)) | ||
power_sum <- 0 | ||
for (j in seq_len(m)) { | ||
power_sum <- power_sum + t[[j]] * (x_bar[[j]] - n / k) ^ 2 | ||
} | ||
return(k / n * power_sum) | ||
chackoStatistic <- function(x_t, n, k, uniqueness_method = 2) { | ||
m <- length(x_t[, "x"]) | ||
x_t_unique <- switch(uniqueness_method, | ||
x_t[seq_len(m), , drop = FALSE], # legacy code (hidden) | ||
x_t[!duplicated(x_t[, "x"]), , drop = FALSE], # current implementation | ||
) | ||
k / n * sum(x_t_unique[, "t"] * (x_t_unique[, "x"] - n / k) ^ 2) | ||
} |
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,7 +1,4 @@ | ||
#' @keywords internal | ||
#' @aliases permChacko-package | ||
#' @importFrom methods is | ||
"_PACKAGE" | ||
|
||
## usethis namespace: start | ||
## usethis namespace: end | ||
NULL |
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,19 +1,25 @@ | ||
Dear CRAN Team, | ||
this is a resubmission of package 'permChacko'. I have added the following changes: | ||
|
||
* Improved printing of hypothesis ([issue #11](https://github.com/ocbe-uio/permChacko/issues/11)). | ||
* Added calculation of mid-P values ([issue #13](https://github.com/ocbe-uio/permChacko/issues/13)). | ||
* Improved validation | ||
* Optimized `chackoStatistic()` | ||
* Revised calculation of unique values in `chackoStatistic()` ([issue #16](https://github.com/ocbe-uio/permChacko/issues/16)). | ||
|
||
Please upload to CRAN. | ||
Best, Waldir | ||
|
||
# Package permChacko 1.0.0 | ||
# Package permChacko 1.0.1 | ||
|
||
Reporting is done by packager version 1.15.2 | ||
|
||
|
||
## Test environments | ||
- R version 4.3.1 (2023-06-16) | ||
- R version 4.3.3 (2024-02-29) | ||
Platform: x86_64-pc-linux-gnu (64-bit) | ||
Running under: Ubuntu 23.10 | ||
Running under: Ubuntu 24.04.1 LTS | ||
ERROR: No check log found! | ||
- win-builder (devel) | ||
|
||
## Local test results | ||
|
||
## Local meta results |
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