| plot.cnormBetaBinomial | R Documentation |
This function creates a visualization of a fitted cnormBetaBinomial model, including the original data points, the manifest percentiles (diamond-shaped dots per age group) and the model-implied percentile lines.
## S3 method for class 'cnormBetaBinomial'
plot(x, ...)
x |
A fitted model object of class "cnormBetaBinomial" or "cnormBetaBinomial2". |
... |
Additional arguments passed to the plot method.
|
By default (discrete = TRUE), the percentile lines represent the
exact quantiles of the fitted discrete beta-binomial distribution and are
therefore step functions. Setting discrete = FALSE draws smooth
lines based on the quantiles of the underlying beta (mixing) distribution.
Note that this continuous approximation omits the binomial stage of the
variance and therefore displays less spread than the fitted model actually
implies, particularly in the outer percentiles. Use it only for visual
comparability with continuous modelling approaches.
Cases with non-finite values (NA, NaN, Inf) in age, score or weights are removed prior to plotting, mirroring the behavior of the fitting functions.
A ggplot object.
Other plot:
compare(),
plot.cnorm(),
plot.cnormBetaBinomial2(),
plotDensity(),
plotDerivative(),
plotNorm(),
plotNormCurves(),
plotPercentileSeries(),
plotPercentiles(),
plotRaw(),
plotSubset()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.