Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/dirimean.test.R

Log-likelihood ratio test for a Dirichlet mean vector.

1 | ```
dirimean.test(x, a)
``` |

`x` |
A matrix with the compositional data. No zero values are allowed. |

`a` |
A compositional mean vector. The concentration parameter is estimated at first. If the elements do not sum to 1, it is assumed that the Dirichlet parameters are supplied. |

Log-likelihood ratio test is performed for the hypothesis the given vector of parameters "a" describes the compositional data well.

If there are no zeros in the data, a list including:

`param` |
A matrix with the estimated parameters under the null and the alternative hypothesis. |

`loglik` |
The log-likelihood under the alternative and the null hypothesis. |

`info` |
The value of the test statistic and its relevant p-value. |

Michail Tsagris

R implementation and documentation: Michail Tsagris <[email protected]> and Giorgos Athineou <[email protected]>

Ng Kai Wang, Guo-Liang Tian and Man-Lai Tang (2011). Dirichlet and related distributions: Theory, methods and applications. John Wiley \& Sons.

```
sym.test, diri.nr, diri.est, rdiri, ddiri
```

1 2 3 | ```
x <- rdiri( 100, c(1, 2, 3) )
dirimean.test(x, c(1, 2, 3) )
dirimean.test( x, c(1, 2, 3)/6 )
``` |

Compositional documentation built on June 4, 2018, 5:04 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.