Nothing
`portReturn` <-
function(model, X){
if(is.null(names(model$R)) | is.null(names(X))){
R <- sum(model$R * X)
V <- as.numeric(t(X) %*% model$COV %*% X)
} else {
these <- match(names(X), names(model$R))
R <- sum(model$R[these] * X)
V <- as.numeric(t(X) %*% model$COV[these, these] %*% X)
}
portSum <- list(R=R, VAR=V, X=X, ticker=model$ticker, model=model)
class(portSum) <- 'portReturn'
return(portSum)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.