Description Usage Arguments Value Examples
Plot Components of Mixture Distribution
1 2 3 4 5 6 7 8 9 10 |
obj |
Object of class |
breaks |
class boundaries |
counts |
frequency of observations |
disc |
disc diameter (defaults to zero) |
ecoff.prob |
probability threshold for the ecoff |
main |
main title of the plot |
length.out |
number of points used for plotting component densities |
... |
other arguments passed to |
ecoff value (normal quantile)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | breaks <- 0:28
counts <- c(36, 0, 2, 3, 4, 8, 9, 14, 10, 9, 3, 1, 1, 2,
4, 8, 20, 45, 40, 54, 41, 22, 8, 3, 3, 0, 0,0)
observations <- unbin(breaks[-1], counts) # upper class boundaries
(comp <- mx_guess_components(observations, bw=2/3, mincut=0.9))
obj <- mxObj(comp, left="e")
obj2 <- mx_metafit(breaks, counts, obj)
mx_plot(obj2, breaks, counts, disc=5.5)
## simplification for fitted objects with save.data = TRUE
mx_plot(obj2, disc=5.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.