OLEG NENADI ´C, WALTER ZUCCHINI
Contents
1 An Introduction to R . . . . . . . . . . .. . . . . . . . . . .. . . . . . . . .3
1.1 Downloading and Installing R . . . . . . . . . . . . . . . . . . . . . 3
1.2 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Statistical Distributions . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.4 Writing Custom R Functions . . . . . . . . . . . . . . . . . . . . . .10
2 Linear Models. . . . . . . . . . .. . . . . . . . . . .. . . . . . . . . . .. . . .12
2.1 Fitting Linear Models in R . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2 Generalized Linear Models . . . . . . . . . . . . . . . . . . . . . . . 20
2.3 Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
3 Time Series Analysis. . . . . . . . . . .. . . . . . . . . . .. . . . . . . . . 23
3.1 Classical Decomposition . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.2 Exponential Smoothing . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.3 ARIMA–Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
4 Advanced Graphics. . . . . . . . . . .. . . . . . . . . . .. . . . . . . . . 36
4.1 Customizing Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
4.2 Mathematical Annotations . . . . . . . . . . . . . . . . . . . . . . . . 39
4.3 Three-Dimensional Plots . . . . . . . . . . . . . . . . . . . . . . . . . 41
4.4 RGL: 3D Visualization in R using OpenGL . . . . . . . . . . . . .43
A R–functions. . . . . . . . . . .. . . . . . . . . . .. . . . . . . . . . .. . . . . . . 44
A.1 Mathematical Expressions (expression()) . . . . . . . . . . . . . 44
A.2 The RGL Functionset . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
[此贴子已经被作者于2009-4-10 7:48:00编辑过]