Use the R script to answer the following questions: (write down your answers in the R...

70.2K

Verified Solution

Question

Basic Math

Use the R script to answer the following questions: (write downyour answers in the R script with ##)

(1). Import FarmSize.csv to Rstudio. Use the correct function tobuild a linear regression model predicting the average size of afarm by the number of farms; Give the model a name (e.g.FarmSize_Model). Call the model name to inspect the intercept andslope of the regression model. Verify the answers in your manualcalculation.

(2). Use the correct function to generate the residuals for the12 examples in the dataset from the model. Create a residual plot,with x axis as independent variable and y axis as residual.

(3). Use the correct function to inspect SSE, Se and r². Writedown the values for these measures. Verify the answers in yourmanual calculation.

(4). Use the correct function to inspect slope statistic testingresult. What is the t value for the slope statistic testing? Whatis the p value? What is the statistical decision?

YearNumberofFarmsAverageSize
19505.65213
19554.65258
19603.96297
19653.36340
19702.95374
19752.52420
19802.44426
19852.29441
19902.15460
19952.07469
20002.17434
20052.1444

Answer & Explanation Solved by verified expert
4.1 Ratings (839 Votes)
Ans 1 Rcode dreadcsvCUsersDellDesktopFarmSizecsvheaderTRUEdFarmSizeModellmAverageSize data dsummaryFarmSizeModelOutputCoefficientsIntercept NumberofFarms60019 7233AverageSize 60019 7233 NumberofFarms2    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