Hi Payam,
Have a look at Session 11 dealing with factors. You have to coerce
your categorical variable into a factor. Maybe have a look at Session
3 as well. The example with aov will probably be very close to what
you want to do.
Cheers
Rob
--- In sportsci_rtutorial@yahoogroups.com, "pmahbobi" <pmahbobi@...>
wrote:
>
>
> Hi
>
> can anyone tell me how I can use dummy coding for a categorical
> predictor in regression model?
>
> I have numbers in one column and the qualitative variable in
another
> (west cost vs. east coast).
>
> how do I get R to do this for me?
>
>
> Thank you,
>
> Payam.
>