I know there is a small difference between $sigma
and the concept of root mean squared error. So, i am wondering what is the easiest way to obtain RMSE out of lm
function in R?
res<-lm(randomData$price ~randomData$carat+
randomData$cut+randomData$color+
randomData$clarity+randomData$depth+
randomData$table+randomData$x+
randomData$y+randomData$z)
length(coefficients(res))
contains 24 coefficient, and I cannot make my model manually anymore.
So, how can I evaluate the RMSE based on coefficients derived from lm
?
lm(price ~ carat + color + ..., data=randomData)
: easier to read, works with downstream methods such aspredict()
. – Porush