The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The lancor package implements the methods described in Holzmann, Klar (2024). Lancaster correlation is a correlation coefficient which equals the absolute value of the Pearson correlation for the bivariate normal distribution, and is equal to or slightly less than the maximum correlation coefficient for a variety of bivariate distributions. Rank and moment-based estimators and corresponding confidence intervals are implemented, as well as independence tests based on these statistics.
The Lancaster correlation coefficient and the linear Lancaster
correlation coefficient are estimated via the lcor
function:
<- 1000
n <- matrix(rnorm(n*2), n)
x lcor(x, type = "rank")
lcor(x, type = "linear")
Confidence intervals are given by the lcor.ci
function:
<- 1000
n <- matrix(rnorm(n*2), n)
x <- 2
nu <- x / sqrt(rchisq(n, nu)/nu)
y lcor(y, type = "rank")
lcor.ci(y, type = "rank")
Finally the Lancaster correlation test of bivariate independence
lcor.test
:
<- 200
n <- matrix(rnorm(n*2), n)
x <- 2
nu <- x / sqrt(rchisq(n, nu)/nu)
y cor.test(y[,1], y[,2], method = "spearman")
lcor.test(y, type = "rank")
The lancor
package can be installed from within R
via
install.packages("lancor")
Hajo Holzmann, Bernhard Klar
GPL-2
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.