[R] Interaction

Bert Gunter gunter.berton at gene.com
Tue Oct 30 05:14:07 CET 2012


On Mon, Oct 29, 2012 at 7:09 PM, Jeff Newmiller
<jdnewmil at 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:<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
>>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 at 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




More information about the R-help mailing list