# NOT RUN {
dgpd(2:4, 1, 0.5, 0.01)
dgpd(2, -2:1, 0.5, 0.01)
pgpd(2:4, 1, 0.5, 0.01)
qgpd(seq(0.9, 0.6, -0.1), 2, 0.5, 0.01)
rgpd(6, 1, 0.5, 0.01)
# Generate sample with linear trend in location parameter
rgpd(6, 1:6, 0.5, 0.01)
# Generate sample with linear trend in location and scale parameter
rgpd(6, 1:6, seq(0.5, 3, 0.5), 0.01)
p <- (1:9)/10
pgpd(qgpd(p, 1, 2, 0.8), 1, 2, 0.8)
# Incorrect syntax (parameter vectors are of different lengths other than 1)
# }
# NOT RUN {
rgpd(1, 1:8, 1:5, 0)
rgpd(10, 1:8, 1, 0.01)
# }
Run the code above in your browser using DataLab