Question: Please show the code in R so I can compare what I have. Especially show me how to define acrePrice. I did a head (

Please show the code in R so I can compare what I have. Especially show me how to define acrePrice. I did a head
(
MinnLand
)
,
acrePrice is DEFINETELY in the data set.
Here's the problem
In the MinnLand dataset in the alr4 package, fit two possible models with log(acrePrice) or sqrt(acrePrice) as the response, use year as a factor as well. We want to revisit the setting where we need to better understand land prices and the drivers. Use methods weve learned to develop two possible candidate models and compare them using
5 Fold Cross Validation
10 Fold Cross Validation
Random Splitting with 1000 splits.
Note you should use parallel computing where you can/need, and function writing where you can/need because there are 18,700 observations. Before starting this analysis remove ALL NA's from the data using na.omit(MinnLand). In each of the above cases comment on the model you would select to present as your final model based on prediction accuracy. Give any insights it may have on the land prices in Minnesota over this time frame.
AcrePrice is still coming up undefined.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!