Description Usage Arguments Details Value Examples
This function tries to find the Ecoff value of the input data, by aproximating the distribution by an mixing distribution of Gaussian distributions
1 2 |
y |
A data vector with observed values per bin. |
mu |
A vector with startvalues for mu |
sigma2 |
A vector with startvalues for the variance |
pi |
A vector with startvalues for the mixing proportions |
alpha |
Shape parameter of inverse gamma distribution |
beta |
Scale parameter of inverse gamma distribution |
epsilon |
Convergence criterium |
ecoff.quantile |
Quantil which defines the ECOFF |
ecoff.comp |
Component which is used for calculating the ECOFF |
max.iter |
Maximum number of iterations |
The data vector y is defined as one row of the EUCAST Data of the Zone Diameter Data. The first value of y has to be the number of resistant observations. Then the following elements are the number of observations in bin 6 to 6+length(y)-1. A bin x includes all observations which had values form x-0.5 to x+0.5.
The function uses the EM Algorithm to fit a mixing distribution of Normals on the data. Based on the result of the converged mixing distribution the algorithm evaluates the ECOFF value. The ECOFF value is defined by default as the 0.01 quantile of the rightest distribution. The rightest density is defined as the distribution, where the sum of the pis firstly is greater than 0.3. Therefore, the distribution get ordered by their mean in ascending order and then the pis are commulated of the right.
Furthermore, to avoid, that one of the sigma2 converges to 0, the likelihood get penalized in dependence of sigma2. In detail, the penalization term follows a inverse gamma distribution with parameter alpha and beta.
A list with components mu, var, pi, loglik and ecoff
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.