Dear All, A semi-trivial question: suppose you want to carry out a linear regression of the kind y~x1+x2+x3 where x3 is a dichotomous variable assuming only 0 and 1 values (x1 and x2 are continuous variables). Is there any particular caveat I should be aware of? Can I code this as a simple multiple linear regression into R or is there anything else I should bear in mind? Many thanks Lorenzo
You can run that as it is. The term to search for on Google is 'dummy coding'. Jeremy On 28 December 2012 07:45, Lorenzo Isella <lorenzo.isella@gmail.com> wrote:> > where x3 is a dichotomous variable assuming only 0 and 1 values (x1 and x2 > are continuous variables). > Is there any particular caveat I should be aware of? Can I code this as a > simple multiple linear regression into R or is there anything else I should > bear in mind? >[[alternative HTML version deleted]]