gev.fit2: gev.fit() from ismev redefined

Description Usage Arguments Author(s) Examples

Description

Redifined function from ismev because there were errors when computing the cubic model for the location parameter in a nonstationary model. We needed to insert a parameter allowing to control the solerance when needed to solve(x$hessian).

Usage

1
2
3
4
5
gev.fit2(xdat, ydat = NULL, mul = NULL, sigl = NULL, shl = NULL,
  mulink = identity, siglink = identity, shlink = identity,
  muinit = NULL, siginit = NULL, shinit = NULL, show = TRUE,
  method = "Nelder-Mead", maxit = 10000, browser = F, solve.tol = 1e-18,
  ...)

Arguments

solve.tol

and those found in ismev : ?ismev::gev.Fit

Author(s)

Antoine Pissoort, antoine.pissoort@student.uclouvain.be

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 'Cubic' model ?
ti3 <- matrix(ncol = 3, nrow = length(max_years$data))
ti3[ ,1] <- seq(1, length(max_years$data), 1)
ti3[ ,2] <- (ti3[,1])^2
ti3[ ,3] <- (ti3[,1])^3
gev_nonstatio3 <- gev.fit(max_years$data/1000, ydat = ti3, mul = c(1, 2, 3))
gev_nonstatio3 <- PissoortThesis::gev.fit2(max_years$data, ydat = ti3,
                                          mul = c(1, 2, 3),
                                          browser = T, solve.tol = 1e-25)
# System is singular if we do not scale the data.  But if we scale, the are still
#NaNs produced in the covariance matrix.

proto4426/PissoortThesis documentation built on May 26, 2019, 10:31 a.m.