Re: [R] How are interaction terms computed in lm's result / problems with interaction terms in lm?

2016-09-18 Thread David Winsemius
> On Sep 18, 2016, at 12:39 PM, mviljamaa wrote: > >> On Sep 18, 2016, at 11:01 AM, mviljamaa wrote: >> Also if you, rather than doing what's done below, do: >> fit3 <- lm(kidmomhsage$kid_score ~ kidmomhsage$mom_age + kidmomhsage$mom_hs >> +

Re: [R] How are interaction terms computed in lm's result / problems with interaction terms in lm?

2016-09-18 Thread mviljamaa
On Sep 18, 2016, at 11:01 AM, mviljamaa wrote: Also if you, rather than doing what's done below, do: fit3 <- lm(kidmomhsage$kid_score ~ kidmomhsage$mom_age + kidmomhsage$mom_hs + kidmomhsage$mom_age * kidmomhsage$mom_hs) Then this gives the result: Call: lm(formula =

Re: [R] How are interaction terms computed in lm's result / problems with interaction terms in lm?

2016-09-18 Thread David Winsemius
> On Sep 18, 2016, at 11:01 AM, mviljamaa wrote: > > Also if you, rather than doing what's done below, do: > > fit3 <- lm(kidmomhsage$kid_score ~ kidmomhsage$mom_age + kidmomhsage$mom_hs + > kidmomhsage$mom_age * kidmomhsage$mom_hs) > > Then this gives the result: > >

Re: [R] How are interaction terms computed in lm's result / problems with interaction terms in lm?

2016-09-18 Thread mviljamaa
Also if you, rather than doing what's done below, do: fit3 <- lm(kidmomhsage$kid_score ~ kidmomhsage$mom_age + kidmomhsage$mom_hs + kidmomhsage$mom_age * kidmomhsage$mom_hs) Then this gives the result: Call: lm(formula = kidmomhsage$kid_score ~ kidmomhsage$mom_age + kidmomhsage$mom_hs +