Question

2. Consider a study comparing is the length of time (in days) for recovery. The medications were randomly assigned to the pat(b) We fit a simple linear regression model and display a summary of the fit. We are also displaying confidence interval for(iv) Give the value of the coefficient of determination and interpret it within the context of the study (iv) Test for the eq

2. Consider a study comparing is the length of time (in days) for recovery. The medications were randomly assigned to the patients. In group 1, the ni = 15 patients were given medication 1. In group 2, the n2 = 18 patients were given medication 2. We will use a simple linear regression model to analyse the recovery time according to the medication. We import the data with R and display a few two medications for severe bladder infections. The response y rows > head (bladder) time group 20 1 1 12 2 1 3 17 1 4 21 1 5 18 1 16 6 1 The levels for the group variable were coded as 1 and 2, which are numeric. So we will use

(b) We fit a simple linear regression model and display a summary of the fit. We are also displaying confidence interval for the coefficients > summary(mod) Call bladder lm (formula = time group, data Residuals: Median Min 1Q 3Q Маx -5.3889 -2.1333 -0.3889 1.8667 6.6111 Coefficients: Estimate Std. Error t value Pr(> |t|) (Intercept)16.1333 group2 0.7704 20.941 2e-16 *** 4.2556 1.0432 4.079 0.000293 0 ***0.001 ** 0.01 * 0.05 . 0.1 Signif. codes: 1 Residual standard error: 2.984 on 31 degrees of freedom Multiple R-squared: 0.3493, 0.3283 Adjusted R-squared: p-value: 0.0002928 F-statistic: 16.64 on 1 and 31 DF, > confint (mod) 2.5% 97.5 % (Intercept) 14.562018 17.704649 2.127984 6.383127 group2 (i) Give an estimate of the mean recovery time for patients on medication 1 (ii) Give an estimate of the mean recovery time for patients on medication 2 (iii) Give an estimate the common population variance o2.
(iv) Give the value of the coefficient of determination and interpret it within the context of the study (iv) Test for the equality of the mean recovery time. Formulate the hypotheses. Give the value of the t-test statistic, and write down the p-value symbolically. Give the value of the p-value and the conclusion at a = 5%. (v) Give a 95% confidence for B1. Based on this interval, which medication is best?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

(i) raw data is needed

(ii)raw data is needed

(iii) MSE(here residual standard error) is the estimate of the common population variance=2.984

(iv) coefficient of determination=R-square=0.3493

(iv) null hypothesis H0:\mugroup1=\mugroup2

alternate hypothesis Ha: \mugroup1 \ne\mugroup2

statistic t=4.079

p-value=0.000293

Reject H0 , as the p-value is less than alpha=0.05

(v) (1-alpha)*100% confidence interval \beta1=\hat{\beta}1​​​​±t(alpha/2,error df)*SE(\hat{\beta}1)

95% confidence interval =4.2556±t(0.05/2, n-1)*1.0432=4.2556±2.04*1.0432=4.2556±2.1281=(2.1275,6.3837)

given is (2.1280, 6.3831) this is due to decimal place approximation error

Add a comment
Know the answer?
Add Answer to:
2. Consider a study comparing is the length of time (in days) for recovery. The medications...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • The following data, recorded in days, represent the length of time to recovery for patients randomly...

    The following data, recorded in days, represent the length of time to recovery for patients randomly treated with one of two medications to clear up severe bladder infections: Assume that the recovery times are normally distributed. Medication 1 = n =13 , XBAR = 17 , sample variance = 1.5 Medication2 = n = 10 , XBAR = 19 , sample variance= 1.8 (a) Is there a difference in the mean recovery times for the two medications? Test at the...

  • [12 points] The following data, recorded in days, represent the length of time to recovery for...

    [12 points] The following data, recorded in days, represent the length of time to recovery for patients randomly treated with one of two medications to c lear up severe bladder infections: Medication2 n, = 14 17 2-16 小1.8 Find a 99 % confidence interval for the difference two medications, assuming normal populations with equal variances in the mean recovery time for the μ2-ui value, conclusion about the null hypothesis, and interpret the result: The measured radiation emissions (in W/kg) for...

  • ny = 11 X1 = 13 1 The following data represent the length of time, in...

    ny = 11 X1 = 13 1 The following data represent the length of time, in days, to recovery for patients randomly treated with one of two medications to clear up severe bladder infections. Find a 95% confidence interval for the difference H2 – My between in the mean recovery times for the two medications, assuming normal populations with equal variances. Medication 1 s = s = 1.9 Medication 2 X2 = = 18 sz S. = 1.1 Click here...

  • 1. The R codes and outputs shown below were obtained from a study of the relationship...

    1. The R codes and outputs shown below were obtained from a study of the relationship between heart rate (Y) and the body weight in kg (X). Assume that the linear regres- sion model Y, = Be + Bixi + Ei,i = 1,...,n where €; are i.i.d. N(0,0%) is appropriare for this data. We also assume di's as known constants. > xydata <- read.table("heart.txt", header = TRUE) > fit <- Im(YX, xydata) > summary(fit) Call: 1m(formula = Y - X,...

  • · t0.025;3 = 3.182, to.025;4 = 2.776, 10.025:8 = 2.306 • F0.05;1,3 = 10.128, F0.05;1,4 =...

    · t0.025;3 = 3.182, to.025;4 = 2.776, 10.025:8 = 2.306 • F0.05;1,3 = 10.128, F0.05;1,4 = 7.709, F0.05;1,8 = 5.318, F0.05;2,46 = 3.200, F0.05;3,46 = 2.807 • X2025;8 = 17.535, X3.975,8 = 2.180 2. (31 points) To investigate the effectiveness of allergy medication, ten patients were given varying doses of the allergy medication and asked to report back when the med ication seems to wear off. Assume that the simple linear regression model y = 30 + Bis is appropriate,...

  • 2. 2. After we fit the model, the R commander output is provided below. Coefficients: (Intercept)...

    2. 2. After we fit the model, the R commander output is provided below. Coefficients: (Intercept) -5.128e+03 1.103e+02 46.49 2e-16** Estimate std. Brror t value Pr(lt|) TEMP PERT TEM: FERT 1.45se-01 9.692e-03 -15.01 1.06e-12 3.110e+01 1.344e+00 23.13 2e-16* 1.397e+02 3.140e+00 44.51 < 2e-16** TEMPSQ FERTSO -1.334e-01 6.853e-03 19.46 6.46e-15 -1.144e+00 2.741e-02 41.74 <2e-16 signif. codes: 00.001 0.01 0.05 011 Residual standard error: 1.679 on 21 degrees of freedom Multiple R-squared: 0.993, F-statistic: 596.3 on 5 and 21 DF, p-value: 2.2e-16...

  • Therapy Study " A hospital administrator wishes to assess the relationship between a patient's level of anxiety (x) and that patient's level of satisfaction (y) with a new hospital treatm...

    Therapy Study " A hospital administrator wishes to assess the relationship between a patient's level of anxiety (x) and that patient's level of satisfaction (y) with a new hospital treatment. A linear regression analysis was performed on data for a random sample of n -46 patients who went through this new therapy treatment. A summary of the results is given below: 3. StdDev Min. 1st Qu. Median 3rd Qu. Max. Mean Satisfaction 61.57 17.24 26.00 48.25 60.0076.75 92.00 Anxiety 2.287...

  • A study was carried out to find when people show up to parties-how late is fashionably...

    A study was carried out to find when people show up to parties-how late is fashionably late? We asked hosts to record, either by stopwatch or sign-in, when guests arrived. We got detailed data from many parties held last year. The parties vary in size, ranging from small family dinner parties to large end-of- year celebrations. The following is a scatter plot of median arrival time (measured in minutes) against number of guests at each party. The incomplete output for...

  • Consider a multiple linear regression model Y; = Bo + B1Xi1 + B22:2 + 33213 +...

    Consider a multiple linear regression model Y; = Bo + B1Xi1 + B22:2 + 33213 + Blog(x14) + Ej. We have the following statistics for the regression Call: 1m formula = y “ x1 + x2 + x3 + log(x4) Coefficients: Estimate Std. Error t value Pr(>1t|) (Intercept) 154.1928 194.9062 0.791 0.432938 x1 -4.2280 2.0301 -2.083 0.042873 * x2 -6.1353 2.1936 -2.797 0.007508 ** x3 0.4719 0.1285 3.672 0.000626 *** x4 26.7552 9.3374 2.865 0.006259 ** Signif. codes: O '***'...

  • Consider a multiple linear regression model Y; = Bo + B1Xi1 + B22:2 + 33213 +...

    Consider a multiple linear regression model Y; = Bo + B1Xi1 + B22:2 + 33213 + Blog(x14) + Ej. We have the following statistics for the regression Call: 1m formula = y “ x1 + x2 + x3 + log(x4) Coefficients: Estimate Std. Error t value Pr(>1t|) (Intercept) 154.1928 194.9062 0.791 0.432938 x1 -4.2280 2.0301 -2.083 0.042873 * x2 -6.1353 2.1936 -2.797 0.007508 ** x3 0.4719 0.1285 3.672 0.000626 *** x4 26.7552 9.3374 2.865 0.006259 ** Signif. codes: O '***'...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT