File: jmfuns.rda
draw.inv.gamma computes the X-Y coordinates for an inverse gamma probability density or cumulative inverse gamma distribution. It either plots the function or simply outputs the coordinates.
draw.inv.gamma(shape, rate = 1, scale = 1/rate,
xlim = NA, ylim = NA, plot.dist = TRUE, cdf = FALSE,
type = "default", mgp = NULL,
yaxs = NULL, main = "default", xlab = "default", ylab = "default",
lwd = 2, cred.int = 0.95, plot.cred.int = FALSE,
type.cred.int = c("left", "mid", "right")[2], cred.lab = TRUE,
cred.col = "yellow", ...)
ARGUMENTS:
shape = shape parameter
rate = rate parameter. Note that you only need to specify the rate or the scale but not both. If both are specified, then the scale parameter takes precedence.
scale = scale parameter. See comment about the rate parameter.
xlimit=NA permits user control of the x axis limits.
ylimit=NA permits user control of the y axis limits.
plot.dist = TRUE (default). If FALSE, then no plot is made and the X-Y coordinates for the graph are outputted. If TRUE, a plot is made and the coordinates are not outputted.
Label = "default": The default setting creates a graph title that states the parameters of the inverse gamma distribution. The label can be set to other values if preferred.
lwd controls the line weight on the graph.
cred.int & plot.cred.int control whether or not a credible interval is plotted and the probability level of the credible interval. At present, only a two-sided credible interval is implemented, but in the future, I would like to offer the option of plotting the credible interval in the left or right tail of the distribution.
cred.lab controls whether or not the probability level of the credible interval is plotted inside of the density plot.
cred.col controls the color of the area under the credible interval.
#-------------- The 'doc' bookmark highlights all of the documentation but not the function skeleton at the top of the file. Use rdocToString macro to convert documentation to an R string variable ---------------------------------------------------------------------------------------------------------------------------------------------
Format for this html document: Page Size = Tabloid: 11" x 17". Note that Tabloid page size is available if Adobe PDF is set as the default printer, but not if the default printer is a physical printer that prints 8.5" x 11" standard paper. Table widths = 9.5"