fit: A RUV model fit (a list), as returned by RUV2 / RUV4 / RUVinv / RUVrinv
ctl.idx: An index vector to specify the negative controls for use with the rescaled variances method. If unspecified, by default fit$ctl is used.
ebayes: A logical variable. Should empirical bayes variance estimates be calculated?
pooled: A logical variable. Should pooled variance estimates be calculated?
evar: A logical variable. Should empirical variance estimates be calculated?
rsvar: A logical variable. Should rescaled variance estimates be calculated?
bin: The bin size to use when calculating empirical variances.
rescaleconst: Can be used to speed up execution. See get_empirical_variances.
Returns
An RUV model fit (a list). In addition to the elements of the list returned by RUV2 / RUV4 / RUVinv / RUVrinv, the list will now contain: - sigma2.ebayes: Estimates of sigma^2 using the empirical bayes shrinkage method of Smyth (2004)
df.ebayes: Estimate of degrees of freedom using the empirical bayes shrinkage method of Smyth (2004)
sigma2.pooled: Estimate of sigma^2 pooled (averaged) over all genes
df.pooled: Degrees of freedom for pooled estimate
varbetahat: "Standard" estimate of the variance of betahat
varbetahat.rsvar: "Rescaled Variances" estimate of the variance of betahat
varbetahat.evar: "Empirical Variances" estimate of the variance of betahat
varbetahat.ebayes: "Empirical Bayes" estimate of the variance of betahat
varbetahat.rsvar.ebayes: "Rescaled Empirical Bayes" estimate of the variance of betahat
varbetahat.pooled: "Pooled" estimate of the variance of betahat
varbetahat.rsvar.pooled: "Rescaled pooled" estimate of the variance of betahat
varbetahat.evar.pooled: Similar to the above, but all genes used to determine the rescaling, not just control genes
p.rsvar: P-values, after applying the method of rescaled variances
p.evar: P-values, after applying the method of empirical variances
p.ebayes: P-values, after applying the empirical bayes method of Smyth (2004)
p.pooled: P-values, after pooling variances
p.rsvar.ebayes: P-values, after applying the empirical bayes method of Smyth (2004) and the method of rescaled variances
p.rsvar.pooled: P-values, after pooling variances and the method of rescaled variances
p.evar.pooled: Similar to the above, but all genes used to determine the rescaling, not just control genes
Fpvals.ebayes: F test p-values, after applying the empirical bayes method of Smyth (2004)
Fpvals.pooled: F test p-values, after pooling variances