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
I thought addition was commutative. I am puzzled by your question. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at 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 <silvano at 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 at r-project.org mailing list >stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.