Description Usage Arguments Details References See Also Examples
Contour lines of a Flexible Dirichlet with given parameters on the ternary diagram or on the right triangle.
1 2 |
a |
vector of the non-negative alpha parameters. |
p |
vector of the clusters' probabilities. It must sum to one. |
t |
non-negative scalar tau parameter. |
type |
string indicating whether to plot the contour lines on a ternary diagram |
var |
numeric vector containing the two variables to be plotted on the axis. Used only if |
zoomed |
if |
showgrid |
if |
nlevels |
approximate number of contour lines to be drawn. |
The number of variables in the Flexible Dirichlet must be 3 to draw a plot. Vectors a
and p
must be of the same length.
Ongaro, A. and Migliorati, S. (2013) A generalization of the Dirichlet distribution. Journal of Multivariate Analysis, 114, 412–426.
Migliorati, S., Ongaro, A. and Monti, G. S. (2016) A structured Dirichlet mixture model for compositional data: inferential and applicative issues. Statistics and Computing, doi:10.1007/s11222-016-9665-y.
1 2 3 4 5 | alpha <- c(12,7,15)
prob <- c(0.3,0.4,0.3)
tau <- 8
FD.theorcontours(alpha,prob,tau)
FD.theorcontours(alpha,prob,tau, type='right', var=c(3,2), zoomed=FALSE, showgrid=TRUE, nlevels=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.