Skip to content

Interaction

3 messages · Silvano, Jeff Newmiller, Bert Gunter

#
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:

            
#
On Mon, Oct 29, 2012 at 7:09 PM, Jeff Newmiller
<jdnewmil at dcn.davis.ca.us> wrote:
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