Last chance! 50% off unlimited learning
Sale ends in
pcu(x, alpha = rho2alpha(rho), rho)
pcuseries(n, alpha = rho2alpha(rho), rho, min = 0, max = 1)
alpha2rho(alpha)
rho2alpha(rho)
pcu
generates a vector of uniform random values of
length(x)
which are correlated to the corresponding vector x
,
pcuseries
generates an auto-correlated series, and
alphatorho
resp. rho2alpha
convert between the usual
correlation coefficient and the association measure of the Plackett distribution.runif
x <- runif(100)
y <- pcu(x, rho = 0.8)
plot(x, y)
cor(x, y)
x <- pcuseries(1000, rho=0.8)
plot(x, type="l")
acf(x)
pacf(x)
Run the code above in your browser using DataLab