Factorial experiment: No degree of freedom in maanova
1
0
Entering edit mode
Naomi Altman ★ 6.0k
@naomi-altman-380
Last seen 3.6 years ago
United States
I have not used MAANOVA, but I think the problem is probably that you included Sample in your model. --Naomi At 01:03 PM 2/19/2008, Marcelo Laia wrote: >Hi, > >We have a factorial experiment like this: > >2 Varieties (resistant and susceptible) >2 Conditions (with inductor and with H2O) >2 Treatments (inoculated and non inoculated) >4 Times points >3 biological repetitions >96 arrays (one color) > >We start to run the analysis on maanova package. > >In our design file design.txt there are these columns: > >Array Dye Var ind Trat Time Sample >1 1 Res H2O Inoc 6h 1 >(...) >96 1 Susc Ind N_inoc 48h 3 > >We had been adjusted these model: > >anova.full.mix <- fitmaanova(data=leonardo.raw.averaged, >+ formula=~Var+ind+Trat+Time+Var:ind+Var:Trat+Var:Time+ >+ ind:Trat+ind:Time+Trat:Time+Sample, random=~Sample) > >When we try to run the matest function, > >ftest.full.Var.mix = matest(leonardo.raw.averaged,anova.full.mix, >+ term="Var",n.perm=100,test.method=rep(1,3)) > > we got a "No degree of freedom" error. > >We only could do that if we remove the interactions from the formula >in fitmaanova function! > >But, we like to get the interactions results. > >Are we doing anything wrong or is it impossible to fit a model to got >the interactions? > >There are another way to got these interactions in our experiments? > >In try to insert Array in the formula (random), but the problem continues. > >Could you help? > >Is possible to got interactions results in our experiments? > >Any comments is very appreciated! > >Thank you very much > >-- >Marcelo Luiz de Laia >Jaboticabal - SP - Brazil > >"Voc? v? as coisas como elas s?o e pergunta: por qu?? Mas eu sonho com >coisas que nunca foram e pergunto: por que n?o? " - Bernard Shaw > >_______________________________________________ >Bioconductor mailing list >Bioconductor at stat.math.ethz.ch >https://stat.ethz.ch/mailman/listinfo/bioconductor >Search the archives: >http://news.gmane.org/gmane.science.biology.informatics.conductor Naomi S. Altman 814-865-3791 (voice) Associate Professor Dept. of Statistics 814-863-7114 (fax) Penn State University 814-865-1348 (Statistics) University Park, PA 16802-2111
maanova maanova • 1.2k views
ADD COMMENT
0
Entering edit mode
Marcelo Laia ▴ 450
@marcelo-laia-2007
Last seen 3.1 years ago
Brazil
Dear Naomi, Please, do you suggest me to do a model like 1, 2 or 3? 1. anova.full.mix <- fitmaanova(data=leonardo.raw.averaged, + formula=~Var+ind+Trat+Time+Var:ind+Var:Trat+Var:Time+ + ind:Trat+ind:Time+Trat:Time, random=~Sample) 2. anova.full.mix <- fitmaanova(data=leonardo.raw.averaged, + formula=~Var+ind+Trat+Time+Var:ind+Var:Trat+Var:Time+ + ind:Trat+ind:Time+Trat:Time) 3. 1. anova.full.mix <- fitmaanova(data=leonardo.raw.averaged, + formula=~Var+ind+Trat+Time+Var:ind+Var:Trat+Var:Time+ + ind:Trat+ind:Time+Trat:Time+Sample) The first one is not included in maanova tutorial. Thank you very much!!! Marcelo 2008/2/20, Naomi Altman <naomi at="" stat.psu.edu="">: > I have not used MAANOVA, but I think the problem > is probably that you included Sample in your model. > > --Naomi > > > At 01:03 PM 2/19/2008, Marcelo Laia wrote: > >Hi, > > > >We have a factorial experiment like this: > > > >2 Varieties (resistant and susceptible) > >2 Conditions (with inductor and with H2O) > >2 Treatments (inoculated and non inoculated) > >4 Times points > >3 biological repetitions > >96 arrays (one color) > > > >We start to run the analysis on maanova package. > > > >In our design file design.txt there are these columns: > > > >Array Dye Var ind Trat Time Sample > >1 1 Res H2O Inoc 6h 1 > >(...) > >96 1 Susc Ind N_inoc 48h 3 > > > >We had been adjusted these model: > > > >anova.full.mix <- fitmaanova(data=leonardo.raw.averaged, > >+ formula=~Var+ind+Trat+Time+Var:ind+Var:Trat+Var:Time+ > >+ ind:Trat+ind:Time+Trat:Time+Sample, random=~Sample) > > > >When we try to run the matest function, > > > >ftest.full.Var.mix = matest(leonardo.raw.averaged,anova.full.mix, > >+ term="Var",n.perm=100,test.method=rep(1,3)) > > > > we got a "No degree of freedom" error. > > > >We only could do that if we remove the interactions from the formula > >in fitmaanova function! > > > >But, we like to get the interactions results. > > > >Are we doing anything wrong or is it impossible to fit a model to got > >the interactions? > > > >There are another way to got these interactions in our experiments? > > > >In try to insert Array in the formula (random), but the problem continues. > > > >Could you help? > > > >Is possible to got interactions results in our experiments? > > > >Any comments is very appreciated! > > > >Thank you very much > > > >-- > >Marcelo Luiz de Laia > >Jaboticabal - SP - Brazil > > > >"Voc? v? as coisas como elas s?o e pergunta: por qu?? Mas eu sonho com > >coisas que nunca foram e pergunto: por que n?o? " - Bernard Shaw > > > > >_______________________________________________ > >Bioconductor mailing list > >Bioconductor at stat.math.ethz.ch > >https://stat.ethz.ch/mailman/listinfo/bioconductor > >Search the archives: > >http://news.gmane.org/gmane.science.biology.informatics.conductor > > Naomi S. Altman 814-865-3791 (voice) > Associate Professor > Dept. of Statistics 814-863-7114 (fax) > Penn State University 814-865-1348 (Statistics) > University Park, PA 16802-2111 > > -- Marcelo Luiz de Laia Jaboticabal - SP - Brazil "Voc? v? as coisas como elas s?o e pergunta: por qu?? Mas eu sonho com coisas que nunca foram e pergunto: por que n?o? " - Bernard Shaw
ADD COMMENT
0
Entering edit mode
Dear, I try to solve the "No degree of Freedom" problem after the Naomi's suggestion. Thank you very much! I found that: 1. with interactions in the formula, there aren't DF for analysis in both, fixed and mixed model (with Samples in random factor) for four factors (Var, ind, Trat and Time). 2. without interactions in the model are possible to calculate all factors (Var, ind, Trat and Time) in both methods, mixed and fixed. 2. without Samples in the model (fixed model) is it possible to calculate only interactions. No DF for single factors. Now, I am on a dilemma: Do the analysis of the four factors in a mixed model (or fixed, both works better) and, after to include the interactions, do the analysis using fixed model (without Samples)?!?!?! Do I violating statistic's laws here?!?! This is not a question 100% related to Bioconductor, but, here, there are persons that, I think, could have, in the past, problems like this one ( I hope :) ). Any comments is very welcome! Thank you very much. Marcelo > 2008/2/20, Naomi Altman <naomi at="" stat.psu.edu="">: > > > I have not used MAANOVA, but I think the problem > > is probably that you included Sample in your model. > > > > --Naomi > > > > > > At 01:03 PM 2/19/2008, Marcelo Laia wrote: > > >Hi, > > > > > >We have a factorial experiment like this: > > > > > >2 Varieties (resistant and susceptible) > > >2 Conditions (with inductor and with H2O) > > >2 Treatments (inoculated and non inoculated) > > >4 Times points > > >3 biological repetitions > > >96 arrays (one color) > > > > > >We start to run the analysis on maanova package. > > > > > >In our design file design.txt there are these columns: > > > > > >Array Dye Var ind Trat Time Sample > > >1 1 Res H2O Inoc 6h 1 > > >(...) > > >96 1 Susc Ind N_inoc 48h 3 > > > > > >We had been adjusted these model: > > > > > >anova.full.mix <- fitmaanova(data=leonardo.raw.averaged, > > >+ formula=~Var+ind+Trat+Time+Var:ind+Var:Trat+Var:Time+ > > >+ ind:Trat+ind:Time+Trat:Time+Sample, random=~Sample) > > > > > >When we try to run the matest function, > > > > > >ftest.full.Var.mix = matest(leonardo.raw.averaged,anova.full.mix, > > >+ term="Var",n.perm=100,test.method=rep(1,3)) > > > > > > we got a "No degree of freedom" error.
ADD REPLY
0
Entering edit mode
Dear, Thank you very much! I already solve that problem. I found that is possible to do the analysis step-by-step (with interactions and without interactions - for main effects). Best wishes. Marcelo
ADD REPLY

Login before adding your answer.

Traffic: 638 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6