escoEstMean: Estimate esco group mean parameters

Description Usage Arguments Details Value

View source: R/esco-estimate.R

Description

Estimate rate and shape parameters for the gamma distribution used to simulate gene expression means.

Usage

1
escoEstMean(normcounts, counts, params)

Arguments

normcounts

library size normalised counts matrix.

counts

counts matrix to estimate parameters from.

params

escoParams object to store estimated values in.

Details

Parameter for the gamma distribution are estimated by fitting the mean normalised counts using fitdist. The 'maximum goodness-of-fit estimation' method is used to minimise the Cramer-von Mises distance. This can fail in some situations, in which case the 'method of moments estimation' method is used instead. Prior to fitting the means are winsorized by setting the top and bottom 10 percent of values to the 10th and 90th percentiles.

Value

escoParams object with estimated values.


JINJINT/ESCO documentation built on May 13, 2021, 7:25 p.m.