Details

Details

Trouble Shooting

If the main toolkit dialog does not appear on startup or it appears, but many of the functions do not work, then check the following possible causes.

Back to Top

Is it Really Necessary to Give a Path to the library Command Every Time?

On the unix and linux platforms, if you do not have root privileges, then you will have had to type:

library( extRemes, lib.loc="[path to extRemes library]")

every time you want to load the extRemes library. Similarly for any other R package, like ismev, that you install onto your own space. It is possible to set up a file called .Rprofile that will be called by R every time you start an R session. Inside this file, you can tell it where to look for packages that you install. To make this file available to any R session it is necessary to put .Rprofile in your home directory. Assuming that your packages are in /home/[user]/src/library, the .Rprofile file should look something like:
.First function() {
  cat("Hello! You can put any R function that you want run upon start-up in here.") }
  # Ok, this next command points R to where your packages exist.
  # Note that R will still look in the default path as well.
  .libPaths("/home/[user]/src/library")

  # Now you will no longer need to use the lib.loc argument to library
  # when calling a package located in /home/[user]/src/library.
 


.Last function() {
  cat("Good-bye! You can put any R function that you want run while exiting R here.") }
 
Note that many linux networks now use a different method for supplying R libraries, and the above .libPaths may interfere and cause problems with this new paradigm.

Back to Top

Software Requirements

The following directions were current at the time this tutorial was first written and apply to R 1.7.0, so please consult the Windows FAQ on the R project web site for more up-to-date directions. First, Tcl/Tk libraries and R must be installed on the system. R comes with a large amount of documentation detailing installation. To install R, go to:

CRAN

To obtain the necessary Tcl/Tk software, go to:
http://dev.scriptics.com

Important! The Tcl/Tk interface package, tcltk, for R versions 1.7.0 only work with Tcl version 8.3.x and for R version 1.7.0, it only works with the newer Tcl/Tk version 8.4.x. For Windows users, R version 1.7.0 now installs Tcl/Tk for you by default. If you are on Windows and using R version 1.7.0, please see the Windows FAQ on the R project site (http://www.R-project.org) for more information. If you do not know which version of R you have, type (from the R prompt):

R.version.string

For instructions on installing the Tcl/Tk software go to:

http://www.tcl.tk/doc/howto/compile.html

Notes:

Back to Top

The Underlying Functions

The underlying functions that actually perform the extreme value analyses were written by Stuart Coles for S-Plus and were ported into R by Alec Stephenson. For information on these functions please see Coles (2001) (b) and more specifically the accompaniment to this book Coles (2001) (a). For information on the R port see the web page: http://www.maths.lancs.ac.uk/~stephena/software.html. The primary difference between the original S-PLUS version and the R port is that the R port uses the optim function for finding MLEs instead of the S-PLUS nlm function. The following notes are nearly verbatum from Alec Stephenson's notes on the differences.

Back to Top

Miscellaneous

Whenever a GEV, GPD or PP model is fit to a data object, the entire fitted object is stored within the original data object. Because this toolkit uses Stuart Coles' routines for the fits, the original data is duplicated in the fitted object. For larger datasets this can quickly increase the size of the .RData file and suck up memory. If you are using a relatively large dataset and are performing many fits on it, then it would be a good idea to remove fits that you no longer need. For example, if you want to remove the first GPD fit performed on the "ev.data" object foo, do the following from the R prompt:

foo$models$gpd.fit1 NULL




Back to Top

Back to Table of Contents