require(evd)
test1 <- rRenouv(nb = 100,
threshold = 40,
par.N = list(lambda = 2),
densfun.y = "gpd",
par.y = mom2par("gpd", mean = 30, sd = 36))
test2 <- rRenouv(nb = 100,
threshold = 40,
par.N = list(lambda = 2),
densfun.y = "weibull",
par.y = mom2par("weibull", mean = 30, sd = 36))
test3 <- rRenouv(nb = 100,
threshold = 40,
densfun.N = "negative binomial",
par.N = list(gamma = 10, prob = 0.7),
densfun.y = "weibull",
par.y = mom2par("weibull", mean = 30, sd = 36))Run the code above in your browser using DataLab