So I have a training set and the domain of one of the attributes is the following:
A = {Type1, Type2, Type3, ... ,Type5}
If the domain remains in that form I can't apply linear regression, because the mathematical hypothesis cant possibly work e.g.:
H = TxA + T1xB + T2xC + ...
(that is if we assume that all of the attributes are numerical except for the A attribute, then you cannot multiply a real-value parameter with a type )
Can I substitute the domain with numerical, equivalent, discrete values so I can do Linear Regression for this problem and be ok ?
A = {1, 2, 3, ...., 5 )
Is this the best practice ? If not can you please give me an alternative in those situations ?