This question was created from 102ps1 https://www.coursehero.com/file/11195772/102ps1/

* I WILL PAY FOR THIS HW* Keep Answers as brief as possible. Include key Stata output with answers. You need files AED KNEEREPLACE.DTA, ass4s18sim.do, oecdhealth2008.dta at Smartsite. 1. R-squared Suppose regression of y on an intercept and x with 50 observations yields total sum of squares 100 and explained sum of squares 36. (a) What is R2? (b) What is the correlation coefficient between y and x? (c) What is the standard error of the residual? 2. Use dataset AED KNEEREPLACE.DTA. The data are 2011 data from 170 New York hospitals for knee replacement surgeries. For each hospital variable discharges is the number of knee replacements, variable medcost is the median cost to the hospital of these knee replacements, and variable medcharge is the median charge by the hospital for knee replacements. Note that the hospital charge is the initial price that the hospital charges, but the hospital usually receives less than this after negotiating with the patient or the patient's insurance company (a) Provide a scatterplot of medcharge against medcost, along with fitted regression line. (b) Regress medcharge against medcost. Provide an interpretation of the slope coefficient. (c) Calculate the residuals from this regression. (Hint: Create a variable equal to yi = b1 − b2xi. Alternatively after command regress give command predict uhat, resid). (d) Do the residuals sum over observations to zero? Comment. (e) Given these residuals, calculate the standard error of the regression. (f) Given these residuals, calculate the sum of squared residuals and compare this to the regression output. (g) Calculate the total sum of squares. (Hint: The sample variance of yi equals 1 n (yi − y ̄)2.) n−1 (h) Given your preceding answers, calculate R2 and compare to the regression output. 3. Continue with the same data as in question 2. (a) Create the z-scores for medcharge and medcost. (Recall: zi = (yi − y ̄)/sy ). i=1 (b) Regress the z-score for medcharge against the z-score for medcost. Provide an interpretation of the slope coefficient. (c) Compare the slope coefficient in part (b) to the correlation coefficient between medcharge and medcost. (d) Regress medcharge against just an intercept. (In Stata simply regress medcharge). (e) Compare your results in part (d) to the sample mean of medcharge and its standard error. (f) Do reverse regression of medcost against medcharge. Compare the slope coefficient and R2 with that from regression of medcharge against medcost. Comment.

### Recently Asked Questions

- How do i do question 2.d onwards? I managed to do questions 2 a to 2 c but im not sure on how to do question 2d

- The critical boundaries for a hypothesis test are z = +1.96 and -1.96 . If the z - score for the sample data is z = -1.50 , then what is the correct

- Consider the following reaction : SnCl 4 (l) + 2 H 2 O (l) SnO 2 (s) + 4 HCl (g) At 25°C , H = +133.0 kJ/mol and S = +401.5 J/mol·K .