matest(data, anovaobj, term, Contrast, n.perm=1000, nnodes=1, critical=.9, test.type = c("ttest", "ftest"), shuffle.method=c("sample", "resid"), MME.method=c("REML","noest","ML"), test.method=c(1,1),pval.pool=TRUE, verbose=TRUE)
madata
.fitmaanova
.PairContrast
to make all possible
pairwise comparison or matrix
command to make it
manually. Note that the the hypothesis test can be formulated as H0: Lb=0
versus alternative. This contrast matrix is L. For testing a covariate,
use a one by one contrast matrix of 1.fitmaanova
for detail. This parameter only
applies for mixed effects model permutation test. Default method is
"REML". The variance components for observed data will be used
for permuted data. It will greatly increase the speed but you may
lose power in statistical test in some cases.matest
, which is a list of the following
components:
fitmaanova
, which is the ANOVA model
fitting result on the original data.Cui, X., Hwang, J.T.G., Blades N., Qiu J. and Churchill GA (2003), Improved statistical tests for differential gene expression by shrinking variance components, to be submitted.
makeModel
,
fitmaanova
# load in abf1 data
data(abf1)
## Not run:
# fit.full.mix <- fitmaanova(abf1, formula = ~Strain+Sample,
# random = ~Sample)
# ftest.all = matest(abf1, fit.full.mix, test.method=c(1,1),
# shuffle.method="sample", term="Strain", n.perm= 100)
# C = matrix(c(1,-1,0,1,0,-1), ncol=3, byrow=T)
# ftest.pair = matest(abf1, fit.full.mix, Contrast = C,
# term="Strain", n.perm=100)## End(Not run)
Run the code above in your browser using DataLab