Coding Index
R Code (gives examples of the use of R and MATLAB code.
Some of the simpler codes have been omitted)
adapt 97, 98
apply 31–34, 78, 88, 89, 116, 129, 133, 171,
179, 180, 182, 192, 193, 198, 201, 205, 207,
214, 216, 219, 231, 235, 241, 254, 279, 325,
326, 393
array 21, 335, 386
barplot 388
cbind 235, 242, 247, 250, 257, 372, 381, 397
ceiling 183, 202, 220, 242, 243, 252, 264,
386
contour 46–50, 111, 121, 123, 133, 179,
192, 198, 205, 215, 235, 312, 393
contourLines 308
cor 239, 266
dbinom 326, 327, 368, 373
deriv 62–63, 74, 84, 104, 118, 126
diag 188, 190, 227, 261, 317, 319
dnorm 52
eigen 166, 167, 188, 228, 230, 245
expand.grid 46–50, 121, 129, 133, 177, 192,
198, 205, 214, 235, 279, 311, 392
floor 371
hist 36
image 374, 383
integrate 68, 83, 86, 88, 89, 106, 108,
length 38
lm 179, 191, 197, 205, 211, 214
mvrnorm 230, 261, 265, 318
nlm 64, 65, 75, 81, 91, 98, 104, 105, 108,
112, 113, 125, 128, 134, 135, 138, 281
normdcf 52
optimize 64, 65, 75, 68, 91–93, 98, 104, 108,
119, 186, 189, 396
order 129, 134, 232, 235, 279, 282, 348,
350, 356, 371, 396
outer 46–50
persp 46–50, 374, 383, 393
pnorm 52, 296, 298
qnorm 224, 250, 253, 295
rbind 348, 364, 365, 370, 371, 372
read.table 124, 127, 386
rep 334, 335, 386
rnorm 230, 247, 253, 257, 295,
300, 386
round 232, 253, 257, 285, 290
rowSums 328, 239,
253, 265
rpois 242, 243, 254, 264
runif 26, 41, 53, 95, 96, 99, 183, 237, 242,
252, 253, 264, 334, 353, 386
sample 241, 252, 254, 264, 266, 289, 296,
308, 328, 329, 334
seq 22, 235, 241, 253, 254, 279, 311, 328,
329, 364, 373, 383, 392, 399
setwd 380
signif 374, 383, 393
smooth.spline 289, 290, 291, 298
solve 231, 244
sum 44, 53, 55, 232, 247, 249, 253, 257,
260, 289, 290, 292, 297, 300, 303,
308, 313, 319, 326
summary 36
table 328, 329
uniroot 64, 68, 74, 84–85, 88, 93, 103,
104, 118, 186, 194, 199, 207, 211, 216,
281, 325
var 238, 239, 253
while loop 27, 30, 66, 111, 135, 138, 346,
351, 383, 398
write 124, 127, 385