fit.and.evaluate {OmicsQC} | R Documentation |
This function takes the accumulated QC scores, a vector of distributions and a trimming factor. It then returns the results for each distribution in a dataframe. This function supports the following distributions:
'weibull'
'norm'
'gamma'
'exp'
'lnorm'
'cauchy'
'logis'
fit.and.evaluate(
quality.scores,
distributions = c("weibull", "norm", "gamma", "exp", "lnorm", "cauchy", "logis"),
trim.factor = 0.05
)
quality.scores |
The accumulated QC scores, the output of accumulate.zscores |
distributions |
A vector of distributions to fit and test |
trim.factor |
The fraction of extremes on each end to trim before fitting |
A dataframe of the results with the following columns
Name of the fitted distribution
Whether the Kolmogorov-Smirnov test rejects the fit; see fitdistrplus::gofstat
- kstest
Bayesian Information Criterion