[R] saturated model with a given umber of interaction effects
Peter Ehlers
ehlers at ucalgary.ca
Sun Feb 13 19:05:13 CET 2011
On 2011-02-13 06:54, 7tmw at queensu.ca wrote:
> Hello
>
> I have the following model
>
> y ~ a + b + c + d + e + f
>
> I would like to look at all possible 3 way interaction, is it possible to do this without typing out each interaction manually? Is there some way to run a saturated model permitting only 2 and 3 way interactions (As opposed to considering up to 6 way, which I do not need). any suggesting would be greatly appreciated, thanks
y ~ (a + b + c + d + e + f)^3
or
y ~ .^3
if the structure of your data permits.
Peter Ehlers
>
> Tristan
>
>
> [[alternative HTML version deleted]]
>
More information about the R-help
mailing list