library( extRemes)
extremes.gui()
Read Data
New window appears
Another new window appears
assign a Save As (in R) name
OK
Status message displays.
| Table 1: U.S. total economic damage (in billion $) due to floods (USDMG) by hydrologic year from 1932-1997. Also gives damage per capita (DMGPC) and damage per unit wealth (LOSSPW). See Pielke and Downton (2000) for more information. | |||||||||||||||||||||||||||||||||||||||||||||
|
Read Data. A new window appears for file browsing. Go to the
extRemes data directory and select the file Flood.dat; another new window will appear that allows you to
glance at the dataset (by row) and has some additional options. That is,
Read Data
New window appears.
Open
Another new window appears.
Read Data
New window appears.
Open
Another new window appears.
Read Data
New window appears.
Another new window appears. 




|
| Figure 1.1: Time series plot of total economic damage from U.S. floods (in billion $). |
Scatter Plot
New dialog window appears.
names( Flood)
Flood$name
Flood$data[1:3,]
Read Data

A message is displayed that the file was successfully read along with a summary of the data. Note that if no column names are contained in the file, each column will be labeled with
"V" and a numerical index (as this is the convention in both R and S).
Simulate Data
Generalized Extreme Value (GEV)
Simulate Data
Generalized Extreme Value (GEV)
|
Figure 1.2: Plot of data simulated from a GEV distribution using all default values:
=0, trend=0, =1, =0.2 and sample size=50.
|
Simulate Data
Generalized Extreme Value (GEV) 
Generate
Generalized Extreme Value (GEV) Distribution
New window appears
OK

-0.31 (
0.15),

0.9 (
0.13) and

0.36 (
0.15) with a negative
log-likelihood value for this model of approximately 84.07. Again, these values should differ from values obtained for
different simulations. Nevertheless, the location parameter,
, should be near zero, the scale parameter,
, near one and the shape parameter,
, near 0.2 as these were the parameters of the
true distribution from which the data was simulated. An inspection of the standard errors for each of these estimates
(shown in parentheses above) reveals that the location parameter is two standard deviations below zero, the scale parameter
is well within the first standard deviation from one and the shape parameter is only about one standard deviation above 0.2,
which is quite reasonable.
|
| Figure 1.3: Diagnostic plots for GEV fit to a simulated dataset. |
(t)=
+
t, where
=0 and
is specified by the user. For example, to simulate from a GEV with
=0.3 do the
following.
Simulate Data
Generalized Extreme Value (GEV)
Generate.
Generalized Extreme Value (GEV) Distribution
OK.
|
| Figure 1.4: Simulated data from GEV distribution with trend in location parameter fit to GEV distribution without a trend. |
Generalized Extreme Value (GEV) Distribution
OK.

0.27 + 0.297 obs
=0 and
=0.3) that we used to simulate this dataset. Note that these
values should be slightly different for different simulations, so your results will likely differ from these here. Values
for this particular simulation for the other parameters were also within one standard deviation of the true values.
|
| Figure 1.5: Simulated data from GEV distribution with trend in location parameter fit to GEV distribution with a trend. |
Likelihood-ratio test
OK .
distribution of only 3.8415 and p-value approximately zero.
Simulate Data
Generalized Pareto (GP)
Simulate Data
Generalized Pareto (GP)
|
| Figure 1.6: Scatter plot of one simulation from a GPD using the default values for parameters. |
Generalized Pareto Distribution (GPD)
OK

1.14 (
0.252) and

0.035 (
0.170). As with the GEV example these values should be
close to those of the default values chosen for the simulation. In this case, the scale parameter is well within one
standard deviation from the true value and the shape parameter is nearly one standard deviation below its true value.
Note that we used the default selection of a threshold of zero. It is possible to use a different threshold by entering
it in the Threshold field. The result is the same as adding a constant (the threshold) to the simulated data.
|
| Figure 1.7: Diagnostic plots from fitting one simulation from the GP distribution to the GP distribution. |
data( wooster)
Wooster
list( data=wooster)
Wooster$data
matrix( Wooster$data, ncol=1)
colnames( Wooster$data)
"Temperature"
class( Wooster)
"ev.data"