statsI am R-tool beginner.stackexchange I have a question regarding how to know the performance of a linear regression model by using validation data.com/posts/45053/edit-submit/63e166fe-1f37-4460-b072-33e2d67aa5ca My approach was
Create training and validation data sets from original data set. "train" is name of my training data set and "valid" is name of my validation data set. "category" will be my target variable and "date_time" is my independent variable.
Use training data set to create a regression model
attach(train)
lreg=lm(category~date_time)
Now do predictions for validation data set using model created with training data set
p=predict(lreg,valid)
Now check the accuracy by finding the values of ACC, AUC.
mmetric(valid$category,p,"AUC")
mmetric(valid$category,p,"ACC")
Now if AUC and ACC have small values then it means that model created by training data set is not good in making predictions.
Is my approach correct ?
Thanks and regards!