On Mon, Oct 29, 2012 at 7:09 PM, Jeff Newmiller <jdnew...@dcn.davis.ca.us> wrote: > I thought addition was commutative. I am puzzled by your question.
1. This is not addition. These are model fomulae. 2, The model fitting function is unspecified by the OP. What is it? lm()? 3. In general, the coefficients should not depend on the order of the coefficients, However, inference will (sums of squares, etc.). Cheers, Bert > --------------------------------------------------------------------------- > Jeff Newmiller The ..... ..... Go Live... > DCN:<jdnew...@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... > Live: OO#.. Dead: OO#.. Playing > Research Engineer (Solar/Batteries O.O#. #.O#. with > /Software/Embedded Controllers) .OO#. .OO#. rocks...1k > --------------------------------------------------------------------------- > Sent from my phone. Please excuse my brevity. > > Silvano Cesar da Costa <silv...@uel.br> wrote: > >>Hi, >> >>I'm fitting a model with 3 variables: A, B and SNP. >>The response variable is Y. >> >>I would like fit the following model, in this order: >> >>Y ~ A + B + A*B + SNP >> >>In general, the R sets of the form: >> >>Y ~ A + B + SNP + A*B >> >>How do this? >> >> >>--------------------------------------------- >>Silvano Cesar da Costa >> >>Universidade Estadual de Londrina >>Centro de Ciências Exatas >>Departamento de EstatÃstica >> >>Fone: (43) 3371-4346 >> >>______________________________________________ >>R-help@r-project.org mailing list >>https://stat.ethz.ch/mailman/listinfo/r-help >>PLEASE do read the posting guide >>http://www.R-project.org/posting-guide.html >>and provide commented, minimal, self-contained, reproducible code. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Bert Gunter Genentech Nonclinical Biostatistics Internal Contact Info: Phone: 467-7374 Website: http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.