Last updated on 2025-04-12 20:52:25 CEST.
Package | ERROR | OK |
---|---|---|
rankCorr | 3 | 12 |
Current CRAN status: ERROR: 3, OK: 12
Version: 1.0.3
Check: examples
Result: ERROR
Running examples in ‘rankCorr-Ex.R’ failed
The error most likely occurred in:
> ### Name: rankCorrCluster
> ### Title: Total, between-, and within-cluster Spearman rank correlations
> ### for clustered data
> ### Aliases: rankCorrCluster
>
> ### ** Examples
>
> library(mvtnorm)
> k <- 50; m <- 5
> sigma.u <- matrix(c(1, 0.6, 0.6, 4), ncol=2); sigma.e <- matrix(c(1, 0.6, 0.6, 1), ncol=2)
> u <- rmvnorm(k, c(1, -1), sigma.u)
> x1 <- matrix(NA, k, m)
> y1 <- matrix(NA, k, m)
> for (i in 1:k){
+ r <- rmvnorm(m, c(0, 0), sigma.e)
+ x1[i,] <- u[i, 1] + r[, 1]
+ y1[i,] <- u[i, 2] + r[, 2]
+ }
> x <- as.vector(t(x1))
> y <- as.vector(t(y1))
> cluster <- rep(1:k, each=m)
> rankCorrCluster(x, y, cluster, link.x = "probit", link.y = "probit",
+ methods_between_corr = "approx")
Error in cumprob(g) : could not find function "cumprob"
Calls: rankCorrCluster -> scores_presid
Execution halted
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.