From 02158c8346e82af410b954865dbb87aa173e5e7e Mon Sep 17 00:00:00 2001 From: Le Roux Erwan <erwan.le-roux@irstea.fr> Date: Tue, 30 Mar 2021 11:40:55 +0200 Subject: [PATCH] [projection snowfall] install evgam successfully alongside R > 3.5 --- extreme_fit/distribution/gev/main_evgan.R | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extreme_fit/distribution/gev/main_evgan.R b/extreme_fit/distribution/gev/main_evgan.R index 21b40079..1ba5828b 100644 --- a/extreme_fit/distribution/gev/main_evgan.R +++ b/extreme_fit/distribution/gev/main_evgan.R @@ -3,10 +3,8 @@ # Created by: erwan # Created on: 30/03/2021 -library(mgcv) -# library(evgam) +library(evgam) library(SpatialExtremes) -library(ismev) # Sample from a GEV set.seed(42) N <- 50 @@ -22,6 +20,8 @@ colnames(coord) = c("T") print(coord) coord = data.frame(coord, stringsAsFactors = TRUE) # res = fevd_fixed(x_gev, data=coord, method='MLE', verbose=TRUE, use.phi=FALSE) -res = fevd_fixed(x_gev, data=coord, location.fun= ~T, scale.fun= ~T, method='MLE', type="GEV", verbose=FALSE, use.phi=FALSE) +# fmla = list(miaxi) +evgam() +# res = evgam(x_gev, data=coord, location.fun= ~T, scale.fun= ~T, method='MLE', type="GEV", verbose=FALSE, use.phi=FALSE) # res = fevd_fixed(x_gev, data=coord, shape.fun= ~T, method='MLE', type="GEV", verbose=FALSE, use.phi=FALSE) print(res) -- GitLab