Explore BrainMass
Share

Calculate R-squared in multiple regression

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Let's begin by listing all of the variables.
Response: The amount of time spent in the hospital
Explanatory: age, cholesterol level, blood pressure, and the hospital you are in.
Note that one patient cannot be in two hospitals at once, so there is no interaction term between hospitals.
Your regression equation should be in the form of
time = b0 + b1*age + b2*cholesterol + b3*blood pressure + b4*I(regional) + b5*I(general) + b6*I(charity) + e, where e is the noise.
Here we need 3 dummy variables, I(regional), I(general) and I(charity). If the patient is in either of these hospitals, then that particular dummy variables takes the value 1, and all others take the value 0. If the patient is in the city hospital, then all dummy variables take the value 0 (i.e. the base case).
the coefficients b4 to b6 tells you the differences between those hospitals and the the city hospital. For example, if b4 = -5, then it tells you that all else equal, a patient in the regional memorial hospital will spend 5 units time less than if she went to the city hospital. These coefficients ONLY tell you the differences (w.r.t. the base hospital); they suggest nothing about absolute times.

© BrainMass Inc. brainmass.com October 25, 2018, 8:48 am ad1c9bdddf
https://brainmass.com/statistics/regression-analysis/calculate-squared-multiple-regression-552882

Attachments

Solution Preview

Please see the attachment.

Let's begin by listing all of the variables.
Response: The amount of time spent in the hospital
Explanatory: age, cholesterol level, blood pressure, and the hospital you are in.
Note that one patient cannot be in two hospitals at once, so there is no interaction term between hospitals.
Your regression equation should be in the form of
time = b0 + ...

Solution Summary

The expert calculates the r-squared in multiple regression.

$2.19
See Also This Related BrainMass Solution

Multiple Regression Model: Sum of Squares, Variatin, SSE, MSE, and R-Squared

Consider the following partial computer output for a multiple regression model.

Predictor Coefficient Standard Deviation

Constant 41.225 6.380
X1 1.081 1.353
X2 -18.404 4.547

Analysis of Variance
Source DF SS
Regression 2 2270.11
Error 26 3585.75

Find Total Sum of Squares, Explained Variation, SSE, MSE, R-Squared, and Test the overall usefulness of the model at 1% level of significance calculating the F-Statistic.

Please show work.

View Full Posting Details