bootstrapCor(x, y=NULL, bRep, type="Rpearson", ret="p-value", alternative="two.sided")y must be informed.x is a
vector. If x is a matrix, this argument is ignored. Defaults
to NULL.x) if x is a matrix or a numerical
value if x and y are vectors. The result is the p-values
or maximum correlation values calculated by permutation tests.
cor function from package
stats. The method Rpearson was developed in this package and is a
generalisation of the jackniffe correlation proposed by Heyer
et al. (1999), it
is calculated using the function robustCorr.
cor, robustCorr
x <- runif(50, 0, 1)
y <- rbeta(50, 1, 2)
bootstrapCor(x, y, bRep=100)
z <- matrix(rnorm(100, 0, 1), 4, 25)
bootstrapCor(z, bRep=100)
Run the code above in your browser using DataLab