Learn R Programming

PairedData (version 1.1.1)

rpaired.gld: Simulate paired samples

Description

Simulate paired data with a given correlation (Kendall's tau=(2/pi)arcsine(r)) and marginals being Generalized Tukey-Lambda (G-TL) distributions.

Usage

rpaired.gld(n, d1=c(0.000,0.1974,0.1349,0.1349), d2=c(0.000,0.1974,0.1349,0.1349), r)

Arguments

n

sample size.

d1

vector of four parameters for the first G-TL distribution.

d2

vector of four parameters for the second G-TL distribution.

r

correlation.

Value

An object of class paired.

References

Grambsch, P.M. (1994) Simple robust tests for scale differences in paired data. Biometrika, 81, 359-372.

See Also

rpaired.contaminated

Examples

Run this code
# 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