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

Tests for several groups of additive lognormally distributed compositions.

1 2 3 | ```
acompNormalLocation.test(x, g=NULL, var.equal=FALSE, paired=FALSE,
R=ifelse(var.equal,999,0))
``` |

`x` |
a dataset of compositions (acomp) or a list of such |

`g` |
a factor grouping the data, not used if x is a list already.
Alternatively, |

`var.equal` |
a boolean telling wether the variance of the groups should be considered equal |

`paired` |
true if a paired test should be performed |

`R` |
number of replicates that should be used to compute p-values. 0 means comparing the likelihood statistic with the correponding asymptotic chisq-distribution. |

The tests are based on likelihood ratio statistics.

A classical `"htest"`

object

`data.name` |
The name of the dataset as specified |

`method` |
a name for the test used |

`alternative` |
an empty string |

`replicates` |
a dataset of p-value distributions under the Null-Hypothesis got from nonparametric bootstrap |

`p.value` |
The p.value computed for this test |

Up to now the tests cannot handle missings.

Do not trust the p-values obtained forcing `var.equal=TRUE`

and `R=0`

.
This will include soon equivalent spread tests.

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

Aitchison, J. (1986) *The Statistical Analysis of Compositional
Data* Monographs on Statistics and Applied Probability. Chapman &
Hall Ltd., London (UK). 416p.

`fitDirichlet`

,`rDirichlet`

, `runif.acomp`

,
`rnorm.acomp`

,

1 2 3 | ```
x <- runif.acomp(100,4)
y <- runif.acomp(100,4)
acompNormalLocation.test(list(x,y))
``` |

```
Loading required package: tensorA
Attaching package: 'tensorA'
The following object is masked from 'package:base':
norm
Loading required package: robustbase
Loading required package: energy
Loading required package: bayesm
Welcome to compositions, a package for compositional data analysis.
Find an intro with "? compositions"
Attaching package: 'compositions'
The following objects are masked from 'package:stats':
cor, cov, dist, var
The following objects are masked from 'package:base':
%*%, scale, scale.default
Warning message:
In structure(c(), class = c(class(x), class(y))) :
Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
Consider 'structure(list(), *)' instead.
Warning message:
In structure(c(), class = c(class(x), class(y))) :
Calling 'structure(NULL, *)' is deprecated, as NULL cannot have attributes.
Consider 'structure(list(), *)' instead.
Compositional Normal Location test with different variances
data: list(x, y)
logLik = 7.8099, df = 3, p-value = 0.05
alternative hypothesis: locations of groups are not equal
There were 50 or more warnings (use warnings() to see the first 50)
```

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.