Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pHist

Generates histogram


Description

Generates histogram

Usage

pHist(X, p, nBins, freq = FALSE)

Arguments

X

a vector containing the data points

p

a vector containing the probabilities for each of the data points in X

nBins

expected number of Bins the data set is to be broken down into

freq

a boolean variable to indicate whether the graphic is a representation of frequencies

Value

a list with f the frequency for each midpoint x the midpoints of the nBins intervals

Author(s)

Ram Ahluwalia ram@wingedfootcapital.com and Xavier Valls flamejat@gmail.com

References

http://www.symmys.com See Meucci script pHist.m used for plotting


PortfolioAnalytics

Portfolio Analysis, Including Numerical Methods for Optimization of Portfolios

v1.1.0
GPL-2 | GPL-3
Authors
Brian G. Peterson [cre, aut, cph], Peter Carl [aut, cph], Kris Boudt [ctb, cph], Ross Bennett [ctb, cph], Hezky Varon [ctb], Guy Yollin [ctb], R. Douglas Martin [ctb]
Initial release
2018-05-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.