Data analysis and data mining
A. Azzalini - B. Scarpa
R code used for the examples
- Auxiliary material
- "base-www.R" : initialization code
- "f_true.R": values of the "unknown" function used in Ch.3 and Ch.4
- "f2_true.save": values of the bivariate "unknown" function used at section 4.6
These codes need to be download and they will be called by the
other programs. The do not have visible outputs.
- Chapter 2
- Chapter 3
- Chapter 4
- "sect_4.2.R": code for section 4.2
- "sect_4.3-4.R": code for sections
4.3 and 4.4
-
Note: if you run the next code after the one "sect_4.3-4.R",
then you need to restart R beforehand.
This is due to a quirk coming up if the 'gam' package is used after
package 'mgcv'.
"sect_4.5.R": code for section 4.5
- "sect_4.6.R": code for section 4.6
- "sect_4.7.R": code for section 4.7
- "sect_4.8.R": code for section 4.8
- "sect_4.9.R": code for section 4.9
- Chapter 5
- "sect_5.2-3.R": code for sections
5.2 and 5.3
- "sect_5.4.R": code for section 5.4
- "sect_5.5.R": code for section 5.5
- "sect_5.6a.R": code for first part of section 5.6
Note: if you run the next code after the one "sect_5.6a.R",
then you need to restart R beforehand.
This is due to a quirk coming up if the 'gam' package is used after
package 'mgcv'.
"sect_5.6b.R": code for second part of section 5.6
- "sect_5.7.R": code for section 5.7
- "sect_5.8.R": code for section 5.8
- Chapter 6
Download each code
sect_xxx.R
in a separate file, then execute from inside R the command
> source("namefile")
NB. The code has been verified with R 2.14.2 (2012-02-29),
platform: i386-apple-darwin9.8.0,
with support package as indicated in
this list.
Back to the base-page of the book