Fitting and Simulatingassets from multivariate asset sets based on modeling skew normal and related distributions.
1 2 3 4 5 6 
x 
any rectangular time series object which can be converted by the
function 
n 
a numeric value which represents the number of random vectors to be drawn. 
method 
a character string with the names of the supported distributions:

model 
a list with the model parameters.

fixed.df 
a logical value, should the degreess of freedom fitted or held fixed? 
title 
an optional project title. 
description 
an option project desctiption. 
assetNames 
a character vector with optional asset names. 
... 
optional arguments passed to the underlying functions. 
assetsFit
returns the fitted parameters, assetsSim
returns a simulated (return) series.
Diethelm Wuertz for the Rmetrics port.
Wuertz, D., Chalabi, Y., Chen W., Ellis A. (2009); Portfolio Optimization with R/Rmetrics, Rmetrics eBook, Rmetrics Association and Finance Online, Zurich.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  ## LPP2005REC 
# Load Swiss Pension Fund Data as Percentual Returns:
LPP < 100 * LPP2005REC[, 1:3]
head(LPP)
## assetsFit 
# Fit a SkewStudentt Distribution:
fit < assetsFit(LPP)
# Extract the Model:
model < fit@fit$dp
# Show Model Slot:
print(model)
## assetsSim 
# Simulate set with same statistical properties:
set.seed(1953)
LPP.SIM < assetsSim(n=nrow(LPP), model=model)
colnames(LPP.SIM) < colnames(LPP)
head(LPP.SIM)

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.