<!doctype s-function-doc system "s-function-doc.dtd" [
<!entity % S-OLD "INCLUDE">
]
>
<s-function-doc>
<s-topics>
<s-topic>plot.asymmetric.dstn</s-topic>
<s-topic>plot.gammaRob</s-topic>
<s-topic>plot.gammaMLE</s-topic>
<s-topic>plot.lognormRob</s-topic>
<s-topic>plot.lognormMLE</s-topic>
<s-topic>plot.weibullRob</s-topic>
<s-topic>plot.weibullMLE</s-topic>
</s-topics>

<s-title>
Diagnostic Plots for Asymmetric Distribution Models
</s-title>

<s-description>
Creates a set of plots useful for assessing a fitted asymmetric model stored
in an asymmetric.dstn object. The plot options are (2) Overlaid Density
Estimates, and (3) Response vs Estimated Quantiles.
</s-description>

<s-usage>
<s-old-style-usage>
function(x, truncate=T, which.plots="ask", lower.q=0.999,
         plot.data=T, robustQQline=T, ...)
</s-old-style-usage>
</s-usage>

<s-args-required>
<s-arg name="x">
an asymmetric.dstn object generated by gammaMLE, gammaRob, lognormMLE,
lognormRob, weibullMLE, or weibullRob.
</s-arg>
</s-args-required>

<s-args-optional>
<s-arg name="truncate">
if TRUE, xlim is set to c(0, h) where h
<s-expression>lower.q</s-expression> quantile of the fitted distribution.
</s-arg>

<s-arg name="which.plots">
either "ask", "all", or an integer vector specifying which plots to
draw. If which.plots is an integer vector, use the plot numbers given in
the description above (or in the "ask" menu).
</s-arg>

<s-arg name="lower.q">
the p-value used to calculate the quantile for truncation (see
<s-expression>truncate</s-expression>).
</s-arg>

<s-arg name="plot.data">
if TRUE and the data is available (either in the object or on the search
path), the density estimate is plotted over a histogram of the data.
</s-arg>

<s-arg name="robustQQline">
if TRUE, a robust linear fit is added to the Response vs. Estimated
Quantiles plot.
</s-arg>
</s-args-optional>

<s-value>
x is invisibly returned.
</s-value>

<s-side-effects>
The selected plots are drawn on a graphics device.
</s-side-effects>

<s-details>
The asymmetric.dstn object is coerced to a asymfm object containing a
single model. The plotting is then accomplished by calling plot.asymfm.
</s-details>

<s-see>
<s-function name="plot.sgm">plot</s-function>,
<s-function name="plot.asymfm.sgm">plot.asymfm</s-function>.
</s-see>

<s-examples>
<s-example>
los.gammaRob <- gammaRob(los)
plot(los.gammaRob)
</s-example>
</s-examples>

<s-keywords>
<s-keyword>librobust</s-keyword>
</s-keywords>

<s-docclass>
function
</s-docclass>

</s-function-doc>
