Plotting the GAIT Combo Density
Plots a 1- or 2-parameter GAIT combo probability mass function.
dgaitplot(theta.p, fam = "pois", alt.mix = NULL, inf.mix = NULL, alt.mlm = NULL, inf.mlm = NULL, truncate = NULL, max.support = Inf, pobs.mix = 0, pobs.mlm = 0, pstr.mix = 0, pstr.mlm = 0, byrow.ai = FALSE, theta.a = theta.p, theta.i = theta.p, deflation = FALSE, plot.it = TRUE, new.plot = TRUE, offset.x = ifelse(new.plot, 0, 0.25), type.plot = "h", xlim = c(0, min(100, max.support + 2)), ylim = NULL, xlab = "", ylab = "Probability", main = "", cex.main = 1.2, posn.main = NULL, lty.p = "solid", lty.a.mix = "longdash", lty.a.mlm = "longdash", lty.i.mix = "dashed", lty.i.mlm = "dashed", col.p = "pink2", col.a.mix = "#007FFF", col.a.mlm = "blue", col.i.mix = "#3F00FF", col.i.mlm = "purple", col.t = "tan", cex.p = 1, lwd.p = NULL, lwd.a = NULL, lwd.i = NULL, iontop = TRUE, las = 0, lend = "round", axes.x = TRUE, axes.y = TRUE, Plot.trunc = TRUE, cex.t = 1, pch.t = 1, baseparams.argnames = NULL, ...)
theta.p |
Numeric, usually scalar but may have length 2.
This matches with, e.g., |
fam |
Character, |
alt.mix, inf.mix, alt.mlm, inf.mlm |
See |
truncate, max.support |
See |
pobs.mix, pobs.mlm, pstr.mix, pstr.mlm, byrow.ai |
See |
theta.a, theta.i |
Similar to |
deflation |
Logical. Allow deflation? |
plot.it |
Logical. Plot the PMF? |
new.plot, offset.x |
If |
xlim, ylim, xlab, ylab |
See |
main, cex.main, posn.main |
Character, size and position of |
lty.p, lty.a.mix, lty.a.mlm, lty.i.mix, lty.i.mlm |
Line type for parent, altered and inflated.
See |
col.p, col.a.mix, col.a.mlm, col.i.mix, col.i.mlm |
Line colour for parent (nonspecial), altered and inflated
values.
See |
col.t |
Point colour for truncated values, the default is |
type.plot, cex.p |
The former matches 'type' argument in |
lwd.p, lwd.a, lwd.i |
Line width for parent, altered and inflated.
See |
las, lend |
See |
iontop |
Logical. Draw the inflated bars on top?
The default is to draw the spikes on top, but if
|
axes.x, axes.y |
Logical. Plot axes?
See |
Plot.trunc, cex.t, pch.t |
Logical. Plot the truncated values?
If so, then specify the size and plotting character.
See |
baseparams.argnames |
Character string specifying the argument name for the generic
parameter |
... |
Currently unused but there is provision for passing graphical
arguments in in the future;
see |
This is meant to be a crude function to plot the PMF of the GAIT combo model. Some flexibility is offered via many graphical arguments, but there are still many improvements that could be done.
A list is returned invisibly. The components are:
x |
The integer values between the values of |
pmf.z |
The value of the PMF, by calling the
|
mid.pmf |
For inflated values, the value where the spikes begin,
which are at the same level as the scaled parent
distribution.
This is a convenient way to obtain them as it is quite
cumbersome to compute manually.
For non-inflated values, they are the value of |
This utility function may change a lot in the future.
T. W. Yee.
## Not run: i.mix <- seq(0, 25, by = 5) mean.p <- 10 dispind.p <- 8^2 / mean.p # Var(Y) = dispind.p * mean.p dgaitplot(c(mean.p, dispind.p), fam = "genpois1", alt.mix = i.mix + 1, inf.mix = i.mix, max.support = 33, pobs.mix = 0.1, pstr.mix = 0.1, lwd.p = 2, lwd.a = 2, lwd.i = 2) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.