# Example wind speed and wind gust
data(WindSpeedGust)
years <- format(ParcayMeslay$time, format="%Y")
attach(ParcayMeslay[which(years %in% c(2004:2013)),])
WS_th <- quantile(WS,.9)
DP_th <- quantile(DP,.9)
pars.WS <- evd::fpot(WS, WS_th, model="pp")$estimate
pars.DP <- evd::fpot(DP, DP_th, model="pp")$estimate
data_uf <- trans2UFrechet(cbind(WS,DP), type="Empirical")
rdata <- rowSums(data_uf)
r0 <- quantile(rdata, probs=.90)
extdata <- data_uf[rdata>=r0,]
SP_mle <- fExtDep.np(method="Frequentist", data=extdata, k0=10,
type="maxima")
# \donttest{
pF <- pFailure(n=50000, beta=SP_mle$Ahat$beta,
u1=seq(from=19, to=28, length=200), mar1=pars.WS,
u2=seq(from=40, to=60, length=200), mar2=pars.DP,
type="both", plot=TRUE,
xlab="Daily-maximum Wind Speed (m/s)",
ylab="Differential of Pressure (mbar)", nlevels=15)
# }
Run the code above in your browser using DataLab