Question

A hospital would like to develop a regression model to predict the total hospital bill for a patient based on his or her lengCosts ($) 1,436 1,966 2,862 3,170 3,630 3,962 4,683 4,943 5,137 5,807 6,570 6,746 6,930 7,757 9,034 7,986 8,061 8,286 9,296 9

B) Calculate coefficient of determination R^2

C)Find the value of the test statistic F=

P-value=

D)Calculate adjusted multiple coefficient of determination

R^2A=

0 0
Add a comment Improve this question Transcribed image text
Answer #1

In order to solve this question we use R software.

R codes and output:

> d=read.table('data.csv',header=T,sep=',')

> head(d)

Costs Age Days ICU

1 1436 18    2   0

2 1966 37    2   0

3 2862 28    4   0

4 3170 39    1   0

5 3630 25    2   0

6 3962 30    1   0

> attach(d)

> fit=lm(Costs~ Age+ Days+ICU)

> summary(fit)

Call:

lm(formula = Costs ~ Age + Days + ICU)

Residuals:

    Min      1Q Median      3Q     Max

-4242.5 -1653.0   -93.3   957.3 5427.9

Coefficients:

            Estimate Std. Error t value Pr(>|t|)

(Intercept) 2228.54    1885.45   1.182    0.250

Age            69.96      46.56   1.503    0.148

Days          695.70     326.41   2.131    0.045 *

ICU          1981.63    2833.08   0.699    0.492

---

Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 2684 on 21 degrees of freedom

Multiple R-squared: 0.3054, Adjusted R-squared: 0.2062

F-statistic: 3.078 on 3 and 21 DF, p-value: 0.04975

Que.a

y = 2229  +   70 X1 + 696 X2 + 1982 X3

b.

Coefficient of determination = R2 = 0.3054

c.

F = 3.078

p-value: 0.04975

d.

Adjusted R-squared: 0.2062

Add a comment
Know the answer?
Add Answer to:
B) Calculate coefficient of determination R^2 C)Find the value of the test statistic F= P-value= D)Calculate...
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
  • please show work, attached is the data Question 4 (25pts) A hospital would like to develop...

    please show work, attached is the data Question 4 (25pts) A hospital would like to develop a regression model to predict the total hospital bill for a patient based on the age of the patient (x1), his or her length of stay (x2), and the number of days in the hospital's intensive care unit (ICU) (x3). Data for these variables can be found in Q4data.xlsx. Complete parts a through e below. a) Construct a regression model using all three independent...

  • A hospital would like to develop a regression model to predict the total hospital bill for...

    A hospital would like to develop a regression model to predict the total hospital bill for a patient based on the age of the patient (x1), his or her length of stay (x2), and the number of days in the hospital's intensive care unit(ICU) (x3). Data for these variables can be found below. Complete parts a through e below. a) Construct a regression model using all three independent variables. (Round to the nearest whole number as needed.) b) Interpret the...

  • Calculate the test statistic and p-value for each sample. Use Appendix C-2 to calculate the p-value....

    Calculate the test statistic and p-value for each sample. Use Appendix C-2 to calculate the p-value. (Negative values should be indicated by a minus sign. Round your test statistic to 2 decimal places and p-value to 4 decimal places.) Test Statistic p-value   (a) H0: ππ ≤ .60 versus H1: ππ > .60, α = .05, x = 56, n = 80           (b) H0: ππ = .30 versus H1: ππ ≠ .30, α = .05, x = 18, n...

  • Health Record Face Sheet Record Number: 79-50-77 Age: 36 Gender: Female Length of Stay: 5 Days...

    Health Record Face Sheet Record Number: 79-50-77 Age: 36 Gender: Female Length of Stay: 5 Days Service Type: Inpatient Discharge Status: To Home Diagnosis/Procedure: Insulin reaction Renal failure Diabetes Mellitus, Type II, long term insulin dependence Permanent catheter right internal jugular Removal peritoneal dialysis catheter DISCHARGE SUMMARY PATIENT: RAINEY INPATIENT RECORD NUMBER: 79-50-77 ADMITTED: 12-19-XX DISCHARGED: 12-24-XX PHYSICIAN: DR. ALEX, M.D. DISCHARGE DIAGNOSES: 1. Insulin reaction. 2. Renal failure. 3. Diabetes mellitus, Type II. OPERATIONS/ PROCEDURES: 1. Permanent catheter right...

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