powered by
Simulate paired data with a given correlation (Kendall's tau=(2/pi)arcsine(r)) and marginals being Generalized Tukey-Lambda (G-TL) distributions.
rpaired.gld(n, d1=c(0.000,0.1974,0.1349,0.1349), d2=c(0.000,0.1974,0.1349,0.1349), r)
sample size.
vector of four parameters for the first G-TL distribution.
vector of four parameters for the second G-TL distribution.
correlation.
An object of class paired.
Grambsch, P.M. (1994) Simple robust tests for scale differences in paired data. Biometrika, 81, 359-372.
rpaired.contaminated
# NOT RUN { rpaired.gld(n=30,r=0.5) data(lambda.table) p<-rpaired.gld(n=30,d1=lambda.table[7,],d2=lambda.table[7,],r=0.5) plot(p) # }
Run the code above in your browser using DataLab