attached the book, homework word file and datasets. R script along with word document is required for homework submission. Thanks
Obs,Financial Condition,TotCap/Assets,TotExp/Assets,TotLns&Lses/Assets 1,1,9.7,0.12,0.65 2,1,1,0.11,0.62 3,1,6.9,0.09,1.02 4,1,5.8,0.1,0.67 5,1,4.3,0.11,0.69 6,1,9.1,0.13,0.74 7,1,11.9,0.1,0.79 8,1,8.1,0.13,0.63 9,1,9.3,0.16,0.72 10,1,1.1,0.16,0.57 11,0,11.1,0.08,0.43 12,0,20.5,0.12,0.8 13,0,9.8,0.07,0.69 14,0,7.9,0.08,0.53 15,0,9.6,0.09,0.73 16,0,12.5,0.09,0.3 17,0,18.3,0.08,0.49 18,0,7.2,0.11,0.55 19,0,14,0.08,0.44 20,0,8.3,0.08,0.51 CRIM,ZN,INDUS,CHAS,NOX,RM,AGE,DIS,RAD,TAX,PTRATIO,LSTAT,MEDV,CAT. MEDV 0.00632,18,2.31,0,0.538,6.575,65.2,4.09,1,296,15.3,4.98,24,0 0.02731,0,7.07,0,0.469,6.421,78.9,4.9671,2,242,17.8,9.14,21.6,0 0.02729,0,7.07,0,0.469,7.185,61.1,4.9671,2,242,17.8,4.03,34.7,1 0.03237,0,2.18,0,0.458,6.998,45.8,6.0622,3,222,18.7,2.94,33.4,1 0.06905,0,2.18,0,0.458,7.147,54.2,6.0622,3,222,18.7,5.33,36.2,1 0.02985,0,2.18,0,0.458,6.43,58.7,6.0622,3,222,18.7,5.21,28.7,0 0.08829,12.5,7.87,0,0.524,6.012,66.6,5.5605,5,311,15.2,12.43,22.9,0 0.14455,12.5,7.87,0,0.524,6.172,96.1,5.9505,5,311,15.2,19.15,27.1,0 0.21124,12.5,7.87,0,0.524,5.631,100,6.0821,5,311,15.2,29.93,16.5,0 0.17004,12.5,7.87,0,0.524,6.004,85.9,6.5921,5,311,15.2,17.1,18.9,0 0.22489,12.5,7.87,0,0.524,6.377,94.3,6.3467,5,311,15.2,20.45,15,0 0.11747,12.5,7.87,0,0.524,6.009,82.9,6.2267,5,311,15.2,13.27,18.9,0 0.09378,12.5,7.87,0,0.524,5.889,39,5.4509,5,311,15.2,15.71,21.7,0 0.62976,0,8.14,0,0.538,5.949,61.8,4.7075,4,307,21,8.26,20.4,0 0.63796,0,8.14,0,0.538,6.096,84.5,4.4619,4,307,21,10.26,18.2,0 0.62739,0,8.14,0,0.538,5.834,56.5,4.4986,4,307,21,8.47,19.9,0 1.05393,0,8.14,0,0.538,5.935,29.3,4.4986,4,307,21,6.58,23.1,0 0.7842,0,8.14,0,0.538,5.99,81.7,4.2579,4,307,21,14.67,17.5,0 0.80271,0,8.14,0,0.538,5.456,36.6,3.7965,4,307,21,11.69,20.2,0 0.7258,0,8.14,0,0.538,5.727,69.5,3.7965,4,307,21,11.28,18.2,0 1.25179,0,8.14,0,0.538,5.57,98.1,3.7979,4,307,21,21.02,13.6,0 0.85204,0,8.14,0,0.538,5.965,89.2,4.0123,4,307,21,13.83,19.6,0 1.23247,0,8.14,0,0.538,6.142,91.7,3.9769,4,307,21,18.72,15.2,0 0.98843,0,8.14,0,0.538,5.813,100,4.0952,4,307,21,19.88,14.5,0 0.75026,0,8.14,0,0.538,5.924,94.1,4.3996,4,307,21,16.3,15.6,0 0.84054,0,8.14,0,0.538,5.599,85.7,4.4546,4,307,21,16.51,13.9,0 0.67191,0,8.14,0,0.538,5.813,90.3,4.682,4,307,21,14.81,16.6,0 0.95577,0,8.14,0,0.538,6.047,88.8,4.4534,4,307,21,17.28,14.8,0 0.77299,0,8.14,0,0.538,6.495,94.4,4.4547,4,307,21,12.8,18.4,0 1.00245,0,8.14,0,0.538,6.674,87.3,4.239,4,307,21,11.98,21,0 1.13081,0,8.14,0,0.538,5.713,94.1,4.233,4,307,21,22.6,12.7,0 1.35472,0,8.14,0,0.538,6.072,100,4.175,4,307,21,13.04,14.5,0 1.38799,0,8.14,0,0.538,5.95,82,3.99,4,307,21,27.71,13.2,0 1.15172,0,8.14,0,0.538,5.701,95,3.7872,4,307,21,18.35,13.1,0 1.61282,0,8.14,0,0.538,6.096,96.9,3.7598,4,307,21,20.34,13.5,0 0.06417,0,5.96,0,0.499,5.933,68.2,3.3603,5,279,19.2,9.68,18.9,0 0.09744,0,5.96,0,0.499,5.841,61.4,3.3779,5,279,19.2,11.41,20,0 0.08014,0,5.96,0,0.499,5.85,41.5,3.9342,5,279,19.2,8.77,21,0 0.17505,0,5.96,0,0.499,5.966,30.2,3.8473,5,279,19.2,10.13,24.7,0 0.02763,75,2.95,0,0.428,6.595,21.8,5.4011,3,252,18.3,4.32,30.8,1 0.03359,75,2.95,0,0.428,7.024,15.8,5.4011,3,252,18.3,1.98,34.9,1 0.12744,0,6.91,0,0.448,6.77,2.9,5.7209,3,233,17.9,4.84,26.6,0 0.1415,0,6.91,0,0.448,6.169,6.6,5.7209,3,233,17.9,5.81,25.3,0 0.15936,0,6.91,0,0.448,6.211,6.5,5.7209,3,233,17.9,7.44,24.7,0 0.12269,0,6.91,0,0.448,6.069,40,5.7209,3,233,17.9,9.55,21.2,0 0.17142,0,6.91,0,0.448,5.682,33.8,5.1004,3,233,17.9,10.21,19.3,0 0.18836,0,6.91,0,0.448,5.786,33.3,5.1004,3,233,17.9,14.15,20,0 0.22927,0,6.91,0,0.448,6.03,85.5,5.6894,3,233,17.9,18.8,16.6,0 0.25387,0,6.91,0,0.448,5.399,95.3,5.87,3,233,17.9,30.81,14.4,0 0.21977,0,6.91,0,0.448,5.602,62,6.0877,3,233,17.9,16.2,19.4,0 0.08873,21,5.64,0,0.439,5.963,45.7,6.8147,4,243,16.8,13.45,19.7,0 0.04337,21,5.64,0,0.439,6.115,63,6.8147,4,243,16.8,9.43,20.5,0 0.0536,21,5.64,0,0.439,6.511,21.1,6.8147,4,243,16.8,5.28,25,0 0.04981,21,5.64,0,0.439,5.998,21.4,6.8147,4,243,16.8,8.43,23.4,0 0.0136,75,4,0,0.41,5.888,47.6,7.3197,3,469,21.1,14.8,18.9,0 0.01311,90,1.22,0,0.403,7.249,21.9,8.6966,5,226,17.9,4.81,35.4,1 0.02055,85,0.74,0,0.41,6.383,35.7,9.1876,2,313,17.3,5.77,24.7,0 0.01432,100,1.32,0,0.411,6.816,40.5,8.3248,5,256,15.1,3.95,31.6,1 0.15445,25,5.13,0,0.453,6.145,29.2,7.8148,8,284,19.7,6.86,23.3,0 0.10328,25,5.13,0,0.453,5.927,47.2,6.932,8,284,19.7,9.22,19.6,0 0.14932,25,5.13,0,0.453,5.741,66.2,7.2254,8,284,19.7,13.15,18.7,0 0.17171,25,5.13,0,0.453,5.966,93.4,6.8185,8,284,19.7,14.44,16,0 0.11027,25,5.13,0,0.453,6.456,67.8,7.2255,8,284,19.7,6.73,22.2,0 0.1265,25,5.13,0,0.453,6.762,43.4,7.9809,8,284,19.7,9.5,25,0 0.01951,17.5,1.38,0,0.4161,7.104,59.5,9.2229,3,216,18.6,8.05,33,1 0.03584,80,3.37,0,0.398,6.29,17.8,6.6115,4,337,16.1,4.67,23.5,0 0.04379,80,3.37,0,0.398,5.787,31.1,6.6115,4,337,16.1,10.24,19.4,0 0.05789,12.5,6.07,0,0.409,5.878,21.4,6.498,4,345,18.9,8.1,22,0 0.13554,12.5,6.07,0,0.409,5.594,36.8,6.498,4,345,18.9,13.09,17.4,0 0.12816,12.5,6.07,0,0.409,5.885,33,6.498,4,345,18.9,8.79,20.9,0 0.08826,0,10.81,0,0.413,6.417,6.6,5.2873,4,305,19.2,6.72,24.2,0 0.15876,0,10.81,0,0.413,5.961,17.5,5.2873,4,305,19.2,9.88,21.7,0 0.09164,0,10.81,0,0.413,6.065,7.8,5.2873,4,305,19.2,5.52,22.8,0 0.19539,0,10.81,0,0.413,6.245,6.2,5.2873,4,305,19.2,7.54,23.4,0 0.07896,0,12.83,0,0.437,6.273,6,4.2515,5,398,18.7,6.78,24.1,0 0.09512,0,12.83,0,0.437,6.286,45,4.5026,5,398,18.7,8.94,21.4,0 0.10153,0,12.83,0,0.437,6.279,74.5,4.0522,5,398,18.7,11.97,20,0 0.08707,0,12.83,0,0.437,6.14,45.8,4.0905,5,398,18.7,10.27,20.8,0 0.05646,0,12.83,0,0.437,6.232,53.7,5.0141,5,398,18.7,12.34,21.2,0 0.08387,0,12.83,0,0.437,5.874,36.6,4.5026,5,398,18.7,9.1,20.3,0 0.04113,25,4.86,0,0.426,6.727,33.5,5.4007