File: 00fMultivar-package.Rd

package info (click to toggle)
fmultivar 3011.78-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 324 kB
  • ctags: 57
  • sloc: fortran: 366; ansic: 43; makefile: 13
file content (207 lines) | stat: -rw-r--r-- 6,684 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
\name{fMultivar-package}

\alias{fMultivar-package}
\alias{fMultivar}


\docType{package}


\title{Modelling Multivariate Return Distributions}


\description{

  The Rmetrics "fMultivar"" package is a  collection of functions 
  to manage, to investigate and to analyze bivariate and multivariate 
  data sets of financial returns.
  
}


\details{

    \tabular{ll}{
        Package:    \tab fMultivar\cr
        Type:       \tab Package\cr
        Version:    \tab R 3.0.1\cr
        Date:       \tab 2014\cr
        License:    \tab GPL Version 2 or later\cr
        Copyright:  \tab (c) 1999-2014 Rmetrics Assiciation\cr
        URL:        \tab \url{https://www.rmetrics.org}
  }

}


\section{1 Introduction}{

  The package \code{fMultivar} was written to explore and investigate
  bivariate and multivariate financial return series. 
  The bivariate modeling allows us the comparison of financial returns
  from two investments or from one investment and its benchmark. When 
  it comes to the investigation of multiple investment returns from 
  funds or portfolios we are concerned with the multivariate case.
  
  In the case of bivariate distribution functions we provide functions
  for the 2-dimensional Cauchy, Normal, and Student-t distributions.
  A generalisation (for the density only) is made for the family of 
  2-dimensional elliptical distributions. In this case we provide density
  functions for the Normal, Cauchy, Student-t, Logistic, Laplace, Kotz, 
  e-Power distributions.
  
  In the case of multivariate distribution functions from the skew-normal 
  (SN) family and some related ones we recommend to 
  use the density funtions, probability functions and random number
  generators provided by Azzalini's contributed package \code{sn}.
  The family of his SN-distributions cover the skew Cauchy, the skew
  Normal, and the skew Student-t distributions. For parameter fitting
  we have added three simple wrapper functions for an easy to use
  approach to estimate the distributional parameters for financial
  return series.
  
  In the case of multivariate distribution functions from the generalized
  hyperbolic (GHYP) family and some related ones we recommend to 
  use the density funtions, probability functions and random number
  generators provided by David Luethi and Wolfgang Breymann's contributed 
  package \code{ghyp}.
  The family of their GHYP-distributions cover beside the General
  Hyperbolic distribution (GHYP) also the special cases for the
  Hyperbolic distribution (HYP), for the Normal Inverse Gaussian 
  distribution (NIG), for the Variance Gamma distribution (VG), and 
  for the skewed Student-t distribution (GHST).
}


\section{2 Bivariate Distributions}{

  This section contains functions to model bivariate density, 
  probability, quantile functions, and to generate random numbers
  for three standard distributions.
  
  \preformatted{
  [dpr]cauchy2d         Bivariate Cauchy Distribution
  [dpr]norm2d           Bivariate Normal Disribution
  [dpr]t2d              Bivariate Student-t Disribution
  }
  
  
  The density function 
  
  
  \preformatted{
  delliptical2d         Bivariate Elliptical Densities
  }
  
  
  computes for several bivariate elliptical distributions their
  densities. Included distributions are the following types:
  \code{"norm"}, \code{"cauchy"}, \code{"t"}, \code{"logistic"}, 
  \code{"laplace"}, \code{"kotz"}, and \code{"epower"}.
  
}


\section{3 Multivariate Symmetric Distributions}{

  \preformatted{
  [dpr]              Multivariate Cauchy Distribution
  [dpr]              Multivariate Normal Distribution
  [dpr]              Multivariate Student-t Distribution
  
  [dpr]              Multivariate Truncated Normal Distribution
  }
  
}


\section{3 Multivariate Skew Distributions}{

  We use the functions from the contributed package \code{"sn"} package 
  to model multivariate density and probability functions, and to 
  generate random numbers for the skew Cauchy, Normal and Student-t
  distributions. Note the symmetric case is also included in these
  functions. The functions are:
  
  \preformatted{
  [dpr]msc              Multivariate Skew Cauchy Distribution
  [dpr]msn              Multivariate Skew Normal Distribution
  [dpr]mst              Multivariate Skew Student-t Distribution
  }
    
  Note the functions are not part of the \code{fMultivar} package they
  depend on the \code{"sn"} package and are loaded when \code{fMultivar} 
  is loaded.
  
  NOTE: In the new version of the \code{fMultivar} package the following 
  two distribution functions \code{*mvsnorm} (multivariate Normal 
  distribution) and \code{*mvst} (multivariate Student-t Distribution)
  will become obsolete together with the \code{mvFit} parameter
  estimation function. The functionality is fully covered by the 
  \code{"sn"} package. (They will be most likely deprecated in the 
  future.)
  
  For parameter estimation please use the simple wrapper functions:
  
  \preformatted{
  mscFit                Multivariate Skew Cauchy Fit
  msnFit                Multivariate Skew Normal Fit
  mstFit                Multivariate Skew Student-t Fit
  }
  
  Thes parameter estimation functions will be in the same style
  as all the other fitting functions in other Rmetrics packages.
  
}


\section{4 Multivariate GHYP Distributions}{

  We refer to the package \code{"ghyp"} authored by
  David Luethi and  Wolfgang Breymann,

}


\section{5 Utility Functions}{

  We have also added some very useful utility functions for the
  bivariate case, these include 2-D grid generation, squared and
  hexagonal binned histograms, 2-D kernel density estimates, 
  bivariate histogram plots:
  
  \preformatted{
  grid2d                Bivariate Square Grid of Coordinates
  binning2d             Bivariate Square/Hexagonal Binning Plot
  density2d             Bivariate Kernel Density Plot
  hist2d                Bivariate Histogram Plot
  gridData              Bivariate gridded data set
  }
   
  For integration we have added two quadratur routines a simple one
  for the bivariate case and an adaptive one for the multivariate case:
  
  \preformatted{
  integrate2d           Bivariate Integration
  adapt                 Multivariate adaptive Quadratur
  }
  
  The function \code{adapt} is a wrapper to the function 
  \code{adaptIntegrate} from the new contributed package
  \code{cubature} authored by Stephan G. Johnson.
  
}


\section{About Rmetrics:}{

    The \code{fMultivar} Rmetrics package is written for educational 
    support in teaching "Computational Finance and Financial Engineering" 
    and licensed under the GPL.
    
}


\keyword{package}