A county has four major hospitals 1 Regional Memorial 2 Gene
A county has four major hospitals: (1) Regional Memorial, (2) General, (3) Charity, and (4)City. A multiple regression model is used to compare the time spent in these hospitals after a heartbypass surgery. The response variable is the amount of time spent in the hospital (in days). Thequantitative independent variables include the age of the patient, cholesterol level of the patient,and blood pressure of the patient. Define the dummy variables so that all other hospitals arecompared to City Hospital (base)
Solution
x1 = 1 if the heart surgery is in regional memorial
x1 = 0 , otherwise
x2 = 1 if the heart surgery is in general hospital
x2 = 0 , otherwise
x3 = 1 if the heart surgery is in chariy hospital
x3 = 0 , other wise

