1

I would like to perform a Jonckheere-Terpstra test with weighted data in R. As far as I´ve seen, the only readily available function is the one in the wtJonckheere package. This is still in development and only available on R-Forge, and I couldn´t install it from there on R 4.3.0.

Is there an alternative?

seb-29
  • 51
  • 2
  • 1
    Can you describe what problems you had in installing? `install.packages("wtJonckheere", repos="http://R-Forge.R-project.org")` worked for me - but note that you need to have development tools (compiler etc.) installed, e.g. see https://cran.r-project.org/bin/windows/Rtools/ for Windows or https://mac.r-project.org/tools/ for MacOS – Ben Bolker Apr 24 '23 at 14:15
  • Finding packages for R can be difficult, my general strategy is to include `"cran"` (quotes included) to force packages on the CRAN repo, imperfect but generally good enough. In this case, [`"cran" Jonckheere`](https://www.google.com/search?q="cran"+Jonckheere) reveals the [`fastJT`](https://cran.r-project.org/web/packages/fastJT/index.html) package, which advertises *"highly efficient functions for the calculation of the Jonckheere-Terpstra statistic"*. I don't know if that is sufficient for your needs, perhaps it will give just enough so that you can get the rest. – r2evans Apr 24 '23 at 14:28
  • also: `library("sos"); findFn("Jonckheere")`, although that doesn't seem to help much. – Ben Bolker Apr 24 '23 at 14:35

0 Answers0