Revision d7b0ef36
Added by Benoit Parmentier over 12 years ago
- ID d7b0ef36fbb326ad89f747976531aaabfdacc621
climate/research/oregon/interpolation/Linear_reg.R | ||
---|---|---|
1 |
#This script interpolates station value for the Oregon case study. This program loads the station data from a csv file |
|
1 |
####################Interpolation of Tmax for on3 day.##################### |
|
2 |
#This script interpolates station values for the Oregon case study. This program loads the station data from a csv file |
|
2 | 3 |
#and perform two types of regression: multiple linear model and general additive model (GAM). Note that this program: |
3 | 4 |
#1)assumes that the csv file is in the current working |
4 | 5 |
#2)extract relevant variables from raster images before performing the regressions. |
5 | 6 |
#The user must provide the list of raster images in a textile. |
6 |
#Script created by Benoit Parmentier on February 28, 2012.
|
|
7 |
#Script created by Benoit Parmentier on March 1, 2012.
|
|
7 | 8 |
|
8 | 9 |
###Loading r library and packages # loading the raster package |
9 | 10 |
library(gtools) # loading ... |
Also available in: Unified diff
Minor format changes and clean up to code