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=
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
B) Calculate coefficient of determination R^2 C)Find the value of the test statistic F= P-value= D)Calculate...
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 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. (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 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...