Learn R Programming

extremefit (version 1.0.2)

dataWind: Wind speed for Brest (France)

Description

The data frame provides the wind speed of Brest from 1976 to 2005.

Usage

data("dataWind")

Arguments

Format

The data is the wind speed in meters per second (m/s) every day from 1976 to 2005.

Year

The year of the measure.

Month

The month of the measure.

Day

the day of the measure.

Speed

The wind speed in meters per second

Examples

Run this code
# NOT RUN {
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")

# }

Run the code above in your browser using DataLab