fit_dirichlet.Rd
Fit Dirichlet parameters
fit.dirichlet(X, type = "mm") fit.genDirichlet(X, type = "mm")
X | samples from a dirichlet distribution |
---|---|
type |
|
A list giving the k
value or vector of k
values for the Generalized
Dirichlet and vector of p
estimates. The normal Dirichlet parameterization can be obtained by k*p
.
The fit.dirichlet
function returns two estimates of k
. One based on the most likely
parameter in the distribution, the other based on a weighted mean of the k
estimates for each parameter.
#> $most.likely.k #> [1] 15 #> #> $weighted.k #> [1] 15 #> #> $p #> [1] 0.2 0.8 #>#> $most.likely.k #> [1] 7.579004 #> #> $weighted.k #> [1] 7.176388 #> #> $p #> [1] 0.4292165 0.3230508 0.2477327 #>fit.dirichlet(Z, "ml")#> $k #> [1] 7.253508 #> #> $p #> [1] 0.4312446 0.3301110 0.2386444 #>#> $k #> [1] 10.66755 23.13743 23.13743 #> #> $p #> [1] 0.71556371 0.19311422 0.09132207 #>