Skip to content

Commit

Permalink
fixed problem with the kepner-robinson-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Happ committed Dec 21, 2021
1 parent c3b1712 commit 164ef64
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 23 deletions.
8 changes: 4 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: pseudorank
Title: Pseudo-Ranks
Version: 1.0.0
Date: 2020-10-01
Version: 1.0.2
Date: 2021-12-21
Authors@R: c(person("Martin Happ", role = c("aut", "cre"),
email = "[email protected]",
comment = c(ORCID = "0000-0003-0009-2665")),
Expand All @@ -17,7 +17,7 @@ Depends: R (>= 3.4.0)
Imports: Rcpp (>= 0.12.16), doBy
LinkingTo: Rcpp
SystemRequirements: C++11
URL: http://github.com/happma/pseudorank
BugReports: http://github.com/happma/pseudorank/issues
URL: https://github.com/happma/pseudorank/
BugReports: https://github.com/happma/pseudorank/issues/
RoxygenNote: 7.1.1
Suggests: testthat
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
useDynLib(pseudorank, .registration=TRUE)
export(psrank, pseudorank, hettmansperger_norton_test, kruskal_wallis_test)
export(psrank, pseudorank, hettmansperger_norton_test, kruskal_wallis_test, kepner_robinson_test)
S3method(pseudorank, numeric)
S3method(pseudorank, formula)
S3method(print, pseudorank)
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# pseudorank 1.0.2
* Fixed problem with the Kepner-Robinson-test

# pseudorank 0.3.7
* Changed function name ''psrank'' to ''pseudorank'' and set ''psrank'' as deprecated.
* Added a data set which can be used to show paradoxical results from rank tests.
Expand Down
2 changes: 1 addition & 1 deletion R/S3method.R
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ kruskal_wallis_test.formula <- function(formula, data, na.rm = FALSE, pseudorank
#' @param distribution either 'Chisq' or 'F' approximation
#' @param ... further arguments are ignored
#' @return Returns an object of class 'pseudorank'
#' @example R/example_3.txt
#' @example R/example_4.txt
#' @references James L. Kepner & David H. Robinson (1988) Nonparametric Methods for Detecting Treatment Effects in Repeated-Measures Designs, Journal of the American Statistical Association, 83:402, 456-461.
#' @keywords internal
kepner_robinson_test <- function(x, ...) {
Expand Down
2 changes: 1 addition & 1 deletion R/kepner_robinson.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' @param trend custom numeric vector indicating the trend for the custom alternative, only used if alternative = "custom"
#' @param ... further arguments are ignored
#' @return Returns a data.frame with the results
#' @example R/example_3.txt
#' @example R/example_4.txt
#' @references Kepner, J. L., & Robinson, D. H. (1988). Nonparametric methods for detecting treatment effects in repeated-measures designs. Journal of the American Statistical Association, 83(402), 456-461.
#' @keywords internal
kepner_robinson_test_internal <- function(data, time, subject, distribution, na.rm, formula = NULL, ...) {
Expand Down
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# pseudorank 1.0.0

[![CRANstatus](https://www.r-pkg.org/badges/version/pseudorank)](https://cran.r-project.org/package=pseudorank)
[![](https://cranlogs.r-pkg.org/badges/pseudorank)](https://cran.r-project.org/package=pseudorank)
[![Travis-CI Build Status](https://travis-ci.org/happma/pseudorank.svg?branch=master)](https://travis-ci.org/happma/pseudorank)
[![Build status](https://ci.appveyor.com/api/projects/status/queq8aa7cpct3j16?svg=true)](https://ci.appveyor.com/project/happma/pseudorank)
[![codecov](https://codecov.io/gh/happma/pseudorank/branch/master/graph/badge.svg)](https://codecov.io/gh/happma/pseudorank)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/014857185eaf4387ad83f5d7509d059a)](https://www.codacy.com/project/happma/pseudorank/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=happma/pseudorank&amp;utm_campaign=Badge_Grade_Dashboard)
# pseudorank 1.0.2

[![CRANstatus](https://www.r-pkg.org/badges/version/pseudorank)](https://cran.r-project.org/package=pseudorank/)
[![](https://cranlogs.r-pkg.org/badges/pseudorank)](https://cran.r-project.org/package=pseudorank/)
[![Travis-CI Build Status](https://travis-ci.org/happma/pseudorank.svg?branch=master)](https://travis-ci.org/happma/pseudorank/)
[![Build status](https://ci.appveyor.com/api/projects/status/queq8aa7cpct3j16?svg=true)](https://ci.appveyor.com/project/happma/pseudorank/)

This R package provides a function written in C++ to calculate pseudo-ranks in R and some rank statistics which can opionally use pseudo-ranks instead of ranks.
For a definition and discussion of pseudo-ranks, see for example
Expand Down
11 changes: 7 additions & 4 deletions man/kepner_robinson_test.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions man/kepner_robinson_test_internal.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 164ef64

Please sign in to comment.