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

50.1K

Verified Solution

Question

Basic Math

Use the R script toanswer the following questions: (write down your answers in the Rscript with ##)

(1). ImportFarmSize.csv to Rstudio. Use the correct function to build a linearregression model predicting the average size of a farm by thenumber of farms; Give the model a name (e.g. FarmSize_Model). Callthe model name to inspect the intercept and slope of the regressionmodel. Verify the answers in your manual calculation.

(2). Use the correctfunction to generate the residuals for the 12 examples in thedataset from the model. Create a residual plot, with x axis asindependent variable and y axis as residual.

(3). Use the correctfunction to inspect SSE, Se and r². Write down the values for thesemeasures. Verify the answers in your manual calculation.

(4). Use the correctfunction to inspect slope statistic testing result. What is the tvalue for the slope statistic testing? What is the p value? What isthe 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
3.6 Ratings (580 Votes)
NumberofFarmsc56546539633629525224422921520721721 AverageSizec213 258 297 340 374 420 426441 460 469 434 444FarmSizeModellmAverageSizeNumberofFarms FarmSizeModelCalllmformula AverageSize NumberofFarmsCoefficientsIntercept    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