Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use R-code to complete the following The Boston Housing data is a classical dataset that models the median house values medv of different areas of
Use R-code to complete the following
The Boston Housing data is a classical dataset that models the median house values medv of different areas of Boston. Because a lot of variables exhibit an asymmetry, we will use some transformations data(Boston, package "MASS") head (Boston) crim zn indus chas noxrm age ## 10.0063218 2.31 ## 20.02731 0 7.07 ## 30.02729 0 7.07 ## 40.03237 0 2.18 ## 50.06905 0 2.18 ## 60.02985 0 2.18 0 0.538 6.575 65.2 4.0900 1 296 0 0.469 6.421 78.9 4.9671 2 242 0 0.469 7.185 61.1 4.9671 2 242 0 0.458 6.998 45.8 6.06223 222 0 0.458 7.147 54.2 6.0622 3 222 0 0.458 6.430 58.7 6.0622 3 222 dis rad tax ptratio black lstat medv 15.3 396.90 4.98 24.0 17.8 396.90 9.14 21.6 17.8 392.83 4.03 34.7 18.7 394.63 2.94 33.4 18.7 396.90 5.33 36.2 18.7 394.12 5.21 28.7 useLogc(1,3,5,6,8,9,10,14) Boston[,useLog] = log(Boston[.useLog]) Boston [,2] Boston [,2] / 10 Boston [ , 7] = Boston [ , 7] ^2. 5 / 10^4 Boston [, 11]exp (0.4Boston [,11])/1000 BostonL,12] - Boston[,12] / 100 Boston [, 13]sqrt (Boston [,13]) The Boston Housing data is a classical dataset that models the median house values medv of different areas of Boston. Because a lot of variables exhibit an asymmetry, we will use some transformations data(Boston, package "MASS") head (Boston) crim zn indus chas noxrm age ## 10.0063218 2.31 ## 20.02731 0 7.07 ## 30.02729 0 7.07 ## 40.03237 0 2.18 ## 50.06905 0 2.18 ## 60.02985 0 2.18 0 0.538 6.575 65.2 4.0900 1 296 0 0.469 6.421 78.9 4.9671 2 242 0 0.469 7.185 61.1 4.9671 2 242 0 0.458 6.998 45.8 6.06223 222 0 0.458 7.147 54.2 6.0622 3 222 0 0.458 6.430 58.7 6.0622 3 222 dis rad tax ptratio black lstat medv 15.3 396.90 4.98 24.0 17.8 396.90 9.14 21.6 17.8 392.83 4.03 34.7 18.7 394.63 2.94 33.4 18.7 396.90 5.33 36.2 18.7 394.12 5.21 28.7 useLogc(1,3,5,6,8,9,10,14) Boston[,useLog] = log(Boston[.useLog]) Boston [,2] Boston [,2] / 10 Boston [ , 7] = Boston [ , 7] ^2. 5 / 10^4 Boston [, 11]exp (0.4Boston [,11])/1000 BostonL,12] - Boston[,12] / 100 Boston [, 13]sqrt (Boston [,13])Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started