Question: How to use Language R to solve this problem? The file indeafinger.tat records the length and width of the index finger of 8 adults. Length
How to use Language R to solve this problem?


The file indeafinger.tat records the length and width of the index finger of 8 adults. Length is ezplanatory variable) (a) Read in the data set "indexfinger.txt" an print it out (b) Draw a scatterplot of the width and length (c) Find out the longest finger lengths of both male and female. Then mark this two points in the scatterplot in (a). You can use any aesthetic feature you like as long as these two points can be distinguished from other points (d) Draw a new scatterplot, but substitute all the points with letter "F" or "M" according to the gender. Hint: pch E as. character ser). For male the female conduct the linear regression separately to determine the relationship of width and length of fingers. Calculate the coefficients of these two models. Then you can use the results from the linear regression to draw two predicted lines on the scatterplot above by different line types (One line for male and the other for female
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
