COMPUTER CALCULATIONS: I need to know how to code in R for the solutions, not by hand. 2....

80.2K

Verified Solution

Question

Statistics

COMPUTER CALCULATIONS:

I need to know how to code in R for the solutions, notby hand.

2. Look at the data in Table 7.18 on page 368 of the textbook.These data are also

given in the SAS code labeled “SAS_basketball_goal_data” and Rcode labeled basketball goal data .

The dependent variable is goals and the independent variable isheight of basketball players.

Complete a SAS /R program and answer the following questionsabout the data set:

(a) Does a scatter plot indicate a linear relationship betweenthe two variables?

Is there anything disconcerting about the scatter plot?Explain.

(b) Fit the least-squares regression line (using SAS / R) andinterpret the estimated slope

in the context of this data set. Does it make sense to interpretthe estimated intercept? Explain.

(c) For these data, what is the unbiased estimate of the errorvariance? (Give a number.)

(d) Using the SAS / R output, test the hypothesis that the trueslope of the regression line

is zero (as opposed to nonzero). State the appropriate null andalternative hypotheses,

give the value of the test statistic and give the appropriateP-value. (Use significance

level of 0.05.) Explain what this means in terms of therelationship between the two

variables.

(e) Using SAS / R, find a 95% confidence interval for the meanbasketball goal for

a player with a height of 77 inches. In addition find a 95%prediction interval for

basketball goal for a player with a height of 77 inches.

Data:

HeightGoals
7115
7419
7011
7115
6912
7317
7215
7519
7216
7418
7113
7215
7317
7216
7115
7520
7115
7519
7822
7923
7216
7520
7621
7419
7013

Answer & Explanation Solved by verified expert
4.4 Ratings (849 Votes)
a Does a scatter plot indicate a linear relationshipbetween the two variablesIs there anything disconcerting about the scatter plotExplainthere is existence of linear relationshipb Fit the leastsquares regression line using    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students