find.mean: Optional helper function for getParams

Description Usage Arguments Details Value Author(s) See Also

View source: R/find.mean.R

Description

Finds mean of distribution of either over- or underexpressed statistics.

Usage

1
find.mean(init.value, null.mean, null.sd, null.prop, vals, up = TRUE)

Arguments

init.value

number in (0, 0.5) representing a percentile of the null distribution to use as starting value

null.mean

estimated mean of null distribution (usually found with locfdrFit)

null.sd

estimated standard deviation of null distribution (usually found with locfdrFit)

null.prop

estimated proportion of statistics that came from the null distribution

vals

vector of all the observed values from the mixture distribution

up

if TRUE, find mean of overexpressed statistics, otherwise find mean of underexpressed statistics

Details

For experienced users/debugging only. Calls find.mean.up if up=TRUE, else calls find.mean.down. Most users should use getParams rather than find.mean.

Value

If numerical method succeeds, a list with elements

m

estimated mean of the underexpressed distribution, and

p

the percentile of the null distribution used to find this mean

If numerical method fails, a list with elements

m

mean of underexpressed distribution, as estimated by the 5th percentile of the estimated null distribution

s

standard deviation of underexpressed distribution, as estimated by the standard deviation of the null distribution

Author(s)

Alyssa Frazee

See Also

getParams, find.mean.up, find.mean.down


leekgroup/derfinder documentation built on May 20, 2019, 11:30 p.m.