\name{fitFDist} \alias{fitFDist} \title{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 \code{ebayes} and is not usually called directly by a user. } \usage{ fitFDist(x, df1, covariate=NULL) } \arguments{ \item{x}{numeric vector or array of positive values representing a sample from an F-distribution.} \item{df1}{the first degrees of freedom of the F-distribution. May be an integer or a vector of the same length as \code{x}.} \item{covariate}{if non-\code{NULL}, the estimated scale value will depend on this numeric covariate.} } \details{ The function estimates \code{scale} and \code{df2} under the assumption that \code{x} is distributed as \code{scale} times an F-distributed random variable on \code{df1} and \code{df2} degrees of freedom. } \value{ A list containing the components \item{scale}{scale factor for F-distribution. A vector if \code{covariate} is non-\code{NULL}, otherwise a scalar.} \item{df2}{the second degrees of freedom of the F-distribution.} } \author{Gordon Smyth} \seealso{ \code{\link{ebayes}}, \code{\link{trigammaInverse}} } \keyword{distribution}