Data analysis and data mining
A. Azzalini  B. Scarpa
R code used for the examples
 Auxiliary material
 "basewww.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 produce visible outputs.
 Chapter 2
 Chapter 3
 Chapter 4
 "sect_4.2.R": code for section 4.2
 "sect_4.34.R": code for sections
4.3 and 4.4

Note: if you run the next code after the one "sect_4.34.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.8.R": code for section 4.8
 "sect_4.9.R": code for section 4.9
 Chapter 5
 "sect_5.2.R": code for section 5.2
 "sect_5.3.R": code for section 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 the R command
> source("filename")
NB. The code has been verified with R 2.14.2 (20120229),
platform: i386appledarwin9.8.0,
with support packages indicated in this list.
Back to the homepage of the book