1. A drug company wants to study three new types of medicine (T) for the treatment of a certain kind of skin disease. Th
Posted: Mon May 02, 2022 9:37 am
1. A drug company wants to study three new types of medicine (T) for the treatment of a certain kind of skin disease. The response variable Y in this study is time to heal" (in days); i.e., how long would it take for the patient to recover after receiving the new medicine. It is also believed that Y is linearly related to the age X of the patient. All together 47 patients are involved in this study and the first 6 are listed below. X Patient Number "time to heal" Y, 1 46.5 2 22.1 3 26.3 4 29.2 5 47.6 6 30.0 age Type of Medicine T 42 1 18 1 29 2 31 2 3 21 : O ONN 39 In below X is considered as a continuous regressor while T is considered as a factor with 3 levels. The following three models, all with an intercept term were fitted: Model 1: General; i.e., different medicines have different intercepts and slopes Model 2: Parallel; i.e., all medicines have the same slope but different intercepts Model 3: Common regression; i.e., all medicines have the same slope and intercept (a) Write down the regression model for Model 1. Also write down the first six rows for the corresponding model matrix X. Note that you need to define new indicator variable(s). (b) Write down the regression model for Model 2. Also write down the first six rows for the corresponding model matrix X (c) The residual sum of squares (RSS) for Models 1, 2 and 3 are, respectively, 40.3, 41.4, and 939.8. First test if Model 1 or Model 3 is preferred. Then test if Model 1 or Model 2 is preferred.