本帖隐藏的内容
Diethelm Würtz, Yohan Chalabi, Longhow Lam, Andrew Ellis-Basic R for Finance-Fi.pdf
(1.78 MB, 需要: 25 个论坛币)
Table of contents :
Dedication......Page 5
Preface......Page 7
Contents......Page 9
List of Figures......Page 15
List of Tables......Page 17
I Computations......Page 19
1.1 Vectors......Page 21
1.2 Matrices......Page 24
1.3 Arrays......Page 27
1.4 Data Frames......Page 28
1.5 Time Series......Page 30
1.6 Lists......Page 32
1.7 Printing the Object Structure......Page 36
2.1 Manipulating Vectors......Page 37
2.2 Manipulating Matrices......Page 42
2.3 Manipulating Data Frames......Page 46
2.4 Working with Attributes......Page 52
2.5 Manipulating Character Strings......Page 54
2.6 Creating Factors from Continuous Data......Page 58
3.1 Writing to Text Files......Page 61
3.2 Reading from a Text File with scan()......Page 62
3.3 Reading from a Text File with readLines()......Page 63
3.4 Reading from a Text File with read.table()......Page 64
3.5 Importing Example Data Files......Page 67
3.6 Importing Historical Data Sets from the Internet......Page 68
4.1 Characterization of Objects......Page 69
4.2 Double......Page 70
4.3 Integers......Page 75
4.4 Complex......Page 78
4.5 Logical......Page 79
4.6 Missing Data......Page 80
4.8 NULL......Page 81
II Programming......Page 83
5.1 Writing your first function......Page 85
5.2 Arguments and Variables......Page 87
5.3 Scoping rules......Page 90
5.4 Lazy evaluation......Page 91
5.5 Flow control......Page 92
6.1 The traceback() function......Page 97
6.2 The function warning() and stop()......Page 98
6.3 Stepping Through a Function......Page 99
6.4 The function browser()......Page 100
7.1 Vectorized Computations......Page 101
7.2 The Family of apply() Functions......Page 104
7.3 The function by()......Page 106
7.4 The Function outer()......Page 107
8.1 S3 Class Model Basics......Page 109
8.2 S4 Class Model Basics......Page 114
9.1 Base R packages......Page 115
9.4 R Package Usage......Page 116
9.5 Package Management Functions......Page 117
III Plotting......Page 119
10.1 Scatter Plots......Page 121
10.2 Line Plots......Page 122
10.3 More about the plot() Function......Page 123
10.4 Distribution Plots......Page 125
10.5 Pie and Bar Plots......Page 128
10.6 Stars- and Segments Plots......Page 130
10.7 Bi- and Multivariate Plots......Page 131
11.1 More About Plot Function Arguments......Page 135
11.2 Graphical Parameters......Page 138
11.3 Margins, Plot and Figure Regions......Page 141
11.4 More About Colours......Page 143
11.5 Adding Graphical Elements to an Existing Plot......Page 146
11.6 Controlling the Axes......Page 149
12.2 Device Management under Windows......Page 153
12.3 List of device functions......Page 155
IV Statistics and Inference......Page 157
13.1 Statistical Summaries......Page 159
13.2 Distribution Functions......Page 161
13.3 Random Numbers......Page 163
13.4 Hypothesis Testing......Page 164
13.5 Parameter Estimation......Page 166
13.6 Distribution tails and quantiles......Page 167
14.1 Overview of Functions for Time Series Analysis......Page 169
14.2 Simulation from an Autoregressive Prorcess......Page 170
14.3 AR - Fitting Autoregressive Models......Page 174
14.4 Autoregressive Moving Average Modelling......Page 178
14.5 Forecasting From Estimated Models......Page 181
15.1 Linear Regression Models......Page 183
15.2 Parameter Estimation......Page 187
15.3 Model Diagnostics......Page 190
15.4 Updating a linear model......Page 192
16.1 Correlations and Pairwise Plots......Page 197
16.2 Stars and Segments Plots......Page 204
16.3 k-means Clustering......Page 206
16.4 Hierarchical Clustering......Page 210
V Case Studies: Utility Functions......Page 215
17.2 R Implementation......Page 217
17.3 Examples......Page 218
18.2 R Implementation......Page 221
18.3 Examples......Page 222
19.2 R Implementation......Page 223
19.3 Examples......Page 224
20.2 R Implementation......Page 225
20.3 Examples......Page 226
VI Case Studies: Asset Management......Page 229
21.2 R Implementation......Page 231
21.3 Examples......Page 233
21.4 Exercises......Page 237
22.2 R Implementation......Page 239
22.3 Examples......Page 241
22.4 Exercise......Page 242
23.1 Assignment......Page 243
23.2 R Implementation......Page 244
23.3 Examples......Page 245
24.2 R Implementation......Page 247
24.3 Examples......Page 248
25.2 R Implementation......Page 251
25.4 Exercises......Page 253
VII Case Studies: Option Valuation......Page 255
26.1 Assignment......Page 257
26.2 R Implementation......Page 259
26.3 Examples......Page 260
27.1 Assignment......Page 263
27.2 R Implementation......Page 265
27.3 Examples......Page 266
28.1 Assignment......Page 269
28.2 R Implementation......Page 270
28.3 Examples......Page 272
29.2 R Implementation......Page 273
29.3 Examples......Page 274
29.4 Exercises......Page 276
VIII Case Studies: Portfolio Design......Page 277
30.1 Assignment......Page 279
30.2 R Implementation......Page 280
30.3 Examples......Page 281
31.1 Assignment......Page 285
31.2 R Implementation......Page 286
31.3 Examples......Page 287
32.2 R Implementation......Page 289
32.3 Examples......Page 290
33.2 R Implementation......Page 293
33.3 Examples......Page 295
IX Appendix......Page 297
A Rmetrics Terms of Legal Use......Page 299
B R Manuals on CRAN......Page 301
Index......Page 303
About the Authors......Page 311



雷达卡





京公网安备 11010802022788号







