On Wed, Apr 17, 2013 at 2:33 PM, Marc Schwartz wrote:
> If you only want up to say second order interactions:
>
>> summary(lm(mpg ~ (cyl + disp + hp + drat) ^ 2, data = mtcars))
>
This is what I was looking for. Thank you so much.
> This is covered in ?formula
>
Indeed. I tried to parse ?formula
On Apr 17, 2013, at 7:23 AM, Liviu Andronic wrote:
> Dear all,
> Consider the model below:
>
>> x <- lm(mpg ~ cyl * disp * hp * drat, mtcars)
>> summary(x)
>
> Call:
> lm(formula = mpg ~ cyl * disp * hp * drat, data = mtcars)
>
> Residuals:
>Min 1Q Median 3Q Max
> -3.5725 -
Dear all,
Consider the model below:
> x <- lm(mpg ~ cyl * disp * hp * drat, mtcars)
> summary(x)
Call:
lm(formula = mpg ~ cyl * disp * hp * drat, data = mtcars)
Residuals:
Min 1Q Median 3Q Max
-3.5725 -0.6603 0.0108 1.1017 2.6956
Coefficients:
Estimate S
3 matches
Mail list logo