Question: This is part of a code I received expert help with. It is not working, says acrePrice is not found. Can someone help with this?
This is part of a code I received "expert" help with. It is not working, says acrePrice is not found. Can someone help with this?
install.packagesalr
install.packagesdoParallel
libraryalr
librarycaret
librarydoParallel
libraryforeach
dataMinnLand
data naomitMinnLand
data$year asfactordata$year
formulalog logacrePrice ~
formulasqrt sqrtacrePrice ~
logacrePrice
Here's the introduction to the problem:
In the MinnLand dataset in the alr package, fit two possible models with logacrePrice or sqrtacrePrice 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
Fold Cross Validation
Fold Cross Validation
Random Splitting with splits.
Note you should use parallel computing where you canneed and function writing where you canneed because there are observations. Before starting this analysis remove ALL NA's from the data using naomitMinnLand 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
