simnewsamples(fit, groupsnew, sel, x, groups)gagafit,
as returned by fitGG) or Normal-Normal fit (type nnfit
returned by fitNN). length(groupsnew) is the number of new
samples that will be generated. (1:nrow(x))[sel]. For the
Normal-Normal model this argument is ignored.ExpressionSet, exprSet, data frame or matrix
containing the gene expression measurements used to fit the model.x is of type ExpressionSet or
exprSet, groups should be the name of the column
in pData(x) with the groups that one wishes to compare. If
x is a matrix or a data frame, groups should be a
vector indicating to which group each column in x
corresponds to.exprs(object) and the parameter values used to generate the
expression values can be accessed via fData(object).
rcgamma implements
this approximation.In order to be consistent with the LNNGV model implemented in emfit (package EBarrays), for the Normal-Normal model the variance is drawn from an inverse gamma approximation to its marginal posterior (obtained by plugging in the group means, see EBarrays vignette for details).
Yuan, M. and Kendziorski, C. (2006). A unified approach for simultaneous gene clustering and differential expression identification. Biometrics 62(4): 1089-1098.
checkfit for posterior predictive plot,
simGG for prior predictive simulation.