Learn R Programming

ghyp (version 1.1.0)

hist-methods: Histogram for univariate generalized hyperbolic distributions

Description

The function hist computes a histogram of the given data values and the univariate generalized hyperbolic density.

Usage

## S3 method for class 'ghyp':
hist(x, data = ghyp.data(x), gaussian = TRUE, 
     log.hist = F, ylim = NULL, ghyp.col = 1, ghyp.lwd = 1, 
     ghyp.lty = "solid", col = 1, nclass = 30, plot.legend = TRUE, 
     location = if (log.hist) "bottom" else "topright", legend.cex = 1, ...)

Arguments

x
Usually a fitted univariate generalized hyperbolic distribution of class mle.ghyp. Alternatively an object of class ghyp
legend.cex
The character expansion of the legend.
...
Arguments passed to plot and qqghyp.

Value

  • No value returned

See Also

qqghyp, fit.ghypuv, hist, legend, plot, lines.

Examples

Run this code
data(smi.stocks)
  univariate.fit <- fit.ghypuv(data = smi.stocks[,"SMI"],
                               opt.pars = c(mu = FALSE, sigma = FALSE), 
                               symmetric = TRUE)
  hist(univariate.fit)

Run the code above in your browser using DataLab