powered by
This function produced a plot of the specified Tweedie distribution.
tweedie_plot(y, xi = NULL, mu, phi, type = "pdf", power = NULL, add = FALSE, plot_args = list(), point_args = list(), line_args = list())tweedie.plot( y, xi = NULL, mu, phi, type = "pdf", power = NULL, add = FALSE, ... )
tweedie.plot( y, xi = NULL, mu, phi, type = "pdf", power = NULL, add = FALSE, ... )
the values for \(y\) in the plot.
a synonym for power.
power
the mean of the distribution \(\mu\).
the dispersion parameter \(\phi\).
the type of plot, either pdf (the default) or cdf.
pdf
cdf
the variance power \(p\).
logical; if TRUE, the plot is added to the current plot; if FALSE (the default) the plot is produced on a fresh plot.
TRUE
FALSE
A named list of arguments controlling the main plot. These are passed to plot.
plot
A named list of graphical parameters for plotted points. These are passed to points.
points
A named list of graphical parameters for plotted lines. These are passed to lines.
lines
Additional graphical arguments, passed to plot_args for backward compatibility. Deprecated; use plot_args in tweedie_plot instead.
plot_args
tweedie_plot
If \(1 < p < 2\), the mass at \(Y=0\) is automatically added.
y <- seq(0, 4, length = 50) tweedie_plot(y, power = 1.1, mu = 1, phi = 1, line_args = list(lwd = 2))
Run the code above in your browser using DataLab