I am working with this dataset https://archive.ics.uci.edu/ml/datasets/automobile . There is a categorical variable called 'num.of.doors' which can be (two, four) which is giving me trouble.
when I run lm(formula = price ~ horsepower + num.of.doors, data = train.sample) to predict prices, the output is:
Call: lm(formula = price ~ horsepower + num.of.doors, data = train.sample)
Coefficients: (Intercept) horsepower num.of.doorstwo
-4006.5 174.1 -1856.2
But I would like to see the coefficient of num.of.doors for four doors. How do I do that?