CompoundDensPlot | R Documentation |
Function dplot.cgb2
produces a plot in which the three densities are plotted.
dplot.cgb2(x,shape1, scale, shape2, shape3, pl0, pl, w=rep(1,length(x)), decomp="r", xmax = max(x)*(2/3), choicecol=1:3, kernel="epanechnikov", adjust=1, title=NULL, ylim=NULL)
x |
numeric; can be a vector. The value(s) at which the density is calculated, used for the kernel estimate only. |
shape1, scale ,shape2, shape3 |
numeric; positive parameters of the GB2 distribution. On the plot they are denotes as |
pl0 |
numeric; a vector of initial proportions defining the number of components and the weight of each component density in the decomposition. Sums to one. |
pl |
numeric; a vector of mixture probabilities (output of |
w |
numeric; weights. |
decomp |
string; specifying if the decomposition of the GB2 is done with respect to the right tail ("r") or the left tail ("l") of the distribution. By default, |
xmax |
numeric; maximum |
choicecol |
numeric vector of length 3; defines the color with which the density curves will be plotted. |
adjust |
numeric; graphical parameter of the generic function |
title |
string; title of the plot. By default is equall to NULL (no title). |
ylim |
string; scaling of parameters. By default is equall to NULL (automatic scaling). |
kernel |
string; the kernel used for the kernel density estimate. The default value is "Epanechnikov" (see |
The legend is placed interactively.
dplot.cgb2
plots a graph with three curves - the GB2 density, the compound GB2 density and the corresponding kernel estimate
Monique Graf and Desislava Nedyalkova
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.