Ivana
15/01/20
This application is only a demo on a known dataset mtcars, it helps the modeller to:
This app shortens the process of model selection by skipping;
- Fitting linear models on various variable combinations
- Calculating R-squared and the corresponding p-value
If we use lm model with milles per gallon (mpg) as the dependent variable and weight (wt) as independent variable we get R squared of 75% and the following graphs:
If we add number of cylinders as well, our R squared jumps to 83% and the predicted vs. fitted graph shows that slope is closer to 1:
Additionally by simply clicking variables and making a combination of variables as you see fit you can find out:
- R-squared of that linear model variable combination
- p-value of the overall model
- Check if the residuals are independent
- Check how fitted values correspond to the actual values
See for yourself at: https://izma-ltt.shinyapps.io/DDPW4/