Create a dataset using the following code.
Use the caret package to partition into a test and training set of equal size. Train a linear model and report the RMSE. Repeat this exercise 100 times and make a histogram of the RMSEs and report the average and standard deviation. Hint: adapt the code shown earlier like this:
and put it inside a call to replicate.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here