powered by
Functions to compute row statistical properties of financial and economic time series data.
The functions are:
rowStats
rowSds
rowVars
rowSkewness
rowKurtosis
rowMaxs
rowMins
rowProds
rowQuantiles
rowStats(x, FUN, ...) rowSds(x, ...) rowVars(x, ...) rowSkewness(x, ...) rowKurtosis(x, ...) rowMaxs(x, ...) rowMins(x, ...) rowProds(x, ...) rowQuantiles(x, prob = 0.05, ...)rowStdevs(x, ...) rowAvgs(x, ...)
rowSds(x, ...) rowVars(x, ...) rowSkewness(x, ...) rowKurtosis(x, ...) rowMaxs(x, ...) rowMins(x, ...) rowProds(x, ...) rowQuantiles(x, prob = 0.05, ...)
rowStdevs(x, ...) rowAvgs(x, ...)
each function returns a numeric vector of the statistics
a function name, the statistical function to be applied.
a numeric value, the probability with value in [0,1].
a rectangular object which can be transformed into a matrix by the function as.matrix.
as.matrix
arguments to be passed.
apply
## Simulated Return Data in Matrix Form: x <- matrix(rnorm(10*10), nrow = 10) rowStats(x, FUN = mean) rowMaxs(x)
Run the code above in your browser using DataLab