Description Usage Arguments Author(s) Examples
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).
1 2 3 4 5 |
solve.tol |
and those found in ismev : ?ismev::gev.Fit |
Antoine Pissoort, antoine.pissoort@student.uclouvain.be
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.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.