Use multiple regression analysis to study the variation in mercury concentration in largemouth bass living in...

50.1K

Verified Solution

Question

Statistics

  1. Use multiple regression analysis to study the variation inmercury concentration in largemouth bass living in Florida lakes.The data (bass.csv on Canvas) come from a study of 53 lakes inFlorida sampled from the summer of 1990 to the spring of 1991(Lange, Royals, and Connor 1993). During this time, samples ofwater were taken from the lakes and the follows factors weremeasured: pH, alkalinity, amount of chlorophyll from suspendedplant matter, and the concentration of calcium. At the same time,fish were caught, and their flesh was tested for mercury levels.The response variable is the average mercury level in the flesh ofbass in each of the 53 lakes (avg_mercury). You will use this datato determine if the level of mercury in the fish can be predictedbased on the water chemistry. Import the data and fit the multipleregression model, fitting all possible models.

#question1
library(\"olsrr\")

##
## Attaching package: 'olsrr'

## The following object is masked from'package:datasets':
##
##     rivers

bass =read.csv(\"bass.csv\", header = T)
attach(bass)
bass.lm = lm(Avg_Mercury ~Alkalinity + pH + Calcium+ Chlorophyll, data = bass)
bass.all= ols_step_all_possible(bass.lm)
bass.all

##    IndexN                        Predictors  R-SquareAdj. R-Square
## 1      11                        Alkalinity0.4254905     0.4142256
## 2      21                                pH0.3310853     0.3179693
## 3      31                           Calcium0.2386129     0.2236838
## 4      41                       Chlorophyll0.2130176     0.1975865
## 6      52                AlkalinityCalcium 0.4478582     0.4257726
## 7      62            AlkalinityChlorophyll 0.4436411     0.4213868
## 5      72                     AlkalinitypH 0.4292584     0.4064287
## 9      82                    pHChlorophyll 0.3444788     0.3182580
## 8      92                        pHCalcium 0.3348995     0.3082955
## 10    102               CalciumChlorophyll 0.3009248     0.2729618
## 13    11 3    AlkalinityCalcium Chlorophyll0.4705171     0.4380997
## 11    123             AlkalinitypH Calcium 0.4576077     0.4244001
## 12    133         AlkalinitypH Chlorophyll0.4436478     0.4095855
## 14    143            pHCalcium Chlorophyll0.3484270     0.3085347
## 15    15 4 Alkalinity pH Calcium Chlorophyll0.4719492     0.4279450
##    Mallow's Cp
## 1     3.223111
## 2    11.804576
## 3    20.210347
## 4    22.536973
## 6     3.189877
## 7     3.573211
## 5     4.880607
## 9    12.587099
## 8    13.457860
## 10   16.546176
## 13    3.130182
## 11    4.303642
## 12    5.572602
## 14   14.228213
## 15    5.000000

plot(bass.all)

detach(bass)

a. Give the ??2 and Adjusted??2 forthe best models with one, two, three, and four predictors. Commenton these results (include the variables involved.)

b. Suppose that you want to predictthe average mercury level of fish in a new lake with alkalinity3.0, calcium 2.5, chlorophyll 2.5, and pH 6.0. The predicted valuefor the model including all four predictors is .545 (.0164, 1.073)[mean (PI).] The predicted value for the modelincluding only alkalinity, calcium, and chlorophyll is .532 (.0133,1.051). Have the predicted values and the prediction intervalschanged considerably between the two models? Explain why or why not(based on the inspection of these results.)

c. Explain how your results of a) andb) agree.

Answer & Explanation Solved by verified expert
3.7 Ratings (615 Votes)
a The 2 and Adjusted 2 for the best models with one predictors is Alkalinity 0425490504142256 The 2 and Adjusted 2 for the best models with two predictors is Alkalinity Calcium 0447858204257726 The 2 and Adjusted 2 for the best models with three    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