| dataWind | R Documentation |
The data frame provides the wind speed of Brest from 1976 to 2005.
data("dataWind")
The data is the wind speed in meters per second (m/s) every day from 1976 to 2005.
YearThe year of the measure.
MonthThe month of the measure.
Daythe day of the measure.
SpeedThe wind speed in meters per second
library(extremefit)
data("dataWind")
attach(dataWind)
pred <- NULL
for(m in 1:12){
indices <- which(Month == m)
X <- Speed[indices]*60*60/1000
H <- hill.adapt(X)
pred[m] <- predict(H, newdata = 100, type = "survival")$y
}
plot(pred, ylab = "Estimated survival probability", xlab = "Month")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.