fitting_fun: Final ECOFF Value

Description Usage Arguments Value

View source: R/fitting_fun.R

Description

As the ECOFF value can not always be calculated through semi-parametric clustering, this function decides how the ECOFF should be calculated (semi_param_clust or ecoff_quantile) and returns the final ECOFF. If there is not enough information in the data, this function will return ECOFF to be 0. This can happen in the case when we have less than 5 observations(i.e. 4 and less).

Usage

1
2
fitting_fun(data, fit_one_mode = NULL, quant = 0.01, take_resist = F,
  plotting = F)

Arguments

data

data which is used for analysis (one row of the data set)

fit_one_mode

logical, whether function ecoff quantile should be called for the data, if they can not be clustered to 2 clusters by semi_param_clust, default is F

quant

quantile which should be used for the function ecoff_quantile, default is 0.01

take_resist

logical, whether the resistant - in our case Z6, i.e. the first column - should be used for the fitting and further procedure, default is F

plotting

logical, whether the histogram of the data with fitted GMM and ECOFF value should be plotted, default is F

Value


sp2019-antibiotics/semiparclust documentation built on Nov. 5, 2019, 9:14 a.m.