[R] Odp: Creating Dummy Variables in R

Nikhil Kaza nikhil.list at gmail.com
Wed Dec 16 17:14:43 CET 2009


I don't think R will complain, if you use the approach below. However,  
IF, VVS1 and VVS2 are linearly dependent.
Better use the factor approach and define which factor should be the  
contrast

Nikhil

On 16 Dec 2009, at 10:12AM, Petr PIKAL wrote:

> what commands did you use for regression
>
> I suppose
>
> lm(Price~Weight+IF+VVS1+VVS2, data=your.data)
>
> shall not complain if your.data is a data frame.
>
> Regards
> Petr




More information about the R-help mailing list