fitFDist {limma}R Documentation

Moment Estimation of Scaled F-Distribution

Description

Moment estimation of the parameters of a scaled F-distribution given one of the degrees of freedom. This function is called internally by ebayes and is not usually called directly by a user.

Usage

fitFDist(x, df1, covariate=NULL)

Arguments

x

numeric vector or array of positive values representing a sample from an F-distribution.

df1

the first degrees of freedom of the F-distribution. May be an integer or a vector of the same length as x.

covariate

if non-NULL, the estimated scale value will depend on this numeric covariate.

Details

The function estimates scale and df2 under the assumption that x is distributed as scale times an F-distributed random variable on df1 and df2 degrees of freedom.

Value

A list containing the components

scale

scale factor for F-distribution. A vector if covariate is non-NULL, otherwise a scalar.

df2

the second degrees of freedom of the F-distribution.

Author(s)

Gordon Smyth

See Also

ebayes, trigammaInverse


[Package limma version 3.10.2 Index]