Project

General

Profile

« Previous | Next » 

Revision 899859d9

Added by Benoit Parmentier over 11 years ago

gam day, testing covariates combination with nesting and ti() for paper Oregon

View differences:

climate/research/oregon/interpolation/master_script_temp.R
10 10
#STAGE 5: Output analyses: assessment of results for specific dates...
11 11
#
12 12
#AUTHOR: Benoit Parmentier                                                                       
13
#DATE: 07/02/2013                                                                                 
13
#DATE: 07/04/2013                                                                                 
14 14

  
15 15
#PROJECT: NCEAS INPLANT: Environment and Organisms --TASK#363, TASK$568--   
16 16

  
......
71 71
stages_to_run<-c(0,2,3,4,5) #May decide on antoher strategy later on...
72 72

  
73 73
var<-"TMAX" # variable being interpolated
74
out_prefix<-"_365d_gam_day_lst_07032013"                #User defined output prefix
75
out_suffix<-"_OR_07032013"
74
out_prefix<-"_365d_gam_day_lst_comb2_07042013"                #User defined output prefix
75
out_suffix<-"_OR_07042013"
76 76
out_suffix_modis <-"_05302013" #use tiles produce previously
77 77

  
78 78
#interpolation_method<-c("gam_fusion","gam_CAI","gam_daily") #other otpions to be added later
......
237 237

  
238 238
#Models to run...this can be change for each run
239 239

  
240
list_models<-c("y_var ~ s(elev_s)",
241
              "y_var ~ s(LST)",
242
              "y_var ~ s(elev_s,LST)",
243
              "y_var ~ s(lat) + s(lon)+ s(elev_s)",
244
              "y_var ~ s(lat,lon,elev_s)",
245
              "y_var ~ s(lat,lon) + s(elev_s) + s(N_w,E_w) + s(LST)", 
246
              "y_var ~ s(lat,lon) + s(elev_s) + s(N_w,E_w) + s(LST) + s(LC2)",  
247
              "y_var ~ s(lat,lon) + s(elev_s) + s(N_w,E_w) + s(LST) + s(LC6)", 
248
              "y_var ~ s(lat,lon) + s(elev_s) + s(N_w,E_w) + s(LST) + s(DISTOC)")
249

  
250
#list_models<-c("y_var ~ elev_s",
251
#               "y_var ~ LST",
252
#               "y_var ~ elev_s*LST")
253
#               "y_var ~ lat + lon + elev_s",
254
#               "y_var ~ lat*lon*elev_s",
255
#               "y_var ~ lat*lon + elev_s + N_w*E_w + LST", 
256
#               "y_var ~ lat*lon + elev_s + N_w*E_w + LST + LC2",	
257
#               "y_var ~ lat*lon + elev_s + N_w*E_w + LST + LC6", 
258
#               "y_var ~ lat*lon + elev_s + N_w*E_w + LST + DISTOC")
240
#Combination 1
241
# list_models<-c("y_var ~ s(elev_s)",
242
#               "y_var ~ s(LST)",
243
#               "y_var ~ s(elev_s,LST)",
244
#               "y_var ~ s(lat) + s(lon)+ s(elev_s)",
245
#               "y_var ~ s(lat,lon,elev_s)",
246
#               "y_var ~ s(lat,lon) + s(elev_s) + s(N_w,E_w) + s(LST)", 
247
#               "y_var ~ s(lat,lon) + s(elev_s) + s(N_w,E_w) + s(LST) + s(LC6)",  
248
#               "y_var ~ s(lat,lon) + s(elev_s) + s(N_w,E_w) + s(LST) + ti(LC6,LST)", 
249
#               "y_var ~ s(lat,lon) + s(elev_s) + s(N_w,E_w) + s(LST) + s(DISTOC)")
250

  
251
#testing new combinations and tensor for paper
252
list_models<-c("y_var ~ s(x,y)",
253
               "y_var ~ s(x)+ s(y) + s(LST) + ti(x,y) + ti(x,y,LST)",
254
               "y_var ~ s(elev_s) + s(LST) + ti(elev_s,LST)",
255
               "y_var ~ s(lat) + s(lon) + s(LST)",
256
               "y_var ~ s(lat) + s(lon) + s(elev_s)+ ti(lat,lon) + ti(lat,lon,elev_s)",
257
               "y_var ~ s(lat,lon) + s(LST)", 
258
               "y_var ~ s(lat,lon) + s(elev_s) + s(LST)",  
259
               "y_var ~ s(x) + s(y) + s(elev_s) + ti(x,y) + ti(x,y,elev_s)")
260

  
259 261

  
260 262
#list_models<-c("y_var~ lat + lon + elev_",
261 263
#               "y_var~ I(lat*lon) + elev_s",

Also available in: Unified diff