OmaymaS
The app demonstrates the leverage and influence of an adjustable point that is part of a dataset with 101 points; 100 of which are normally distributed. You can select the X-Y coordinates of the adjustable point using the following sliders with ranges from [-10,10] for both X and Y. The adjustable point appears in red on the graph.
For every point you choose, The Linear regression model coefficients are updated and also some of the influence measures such as hatvalue, residual and dfbeta are shown.
We start by generating 100 normally distributed data points
the point 101 is added according to the user's choice by using the sliders. For example if the user chooses [10,5] it will be prepended to the previously generated points as follows:
head(newDF)
## X Y
## 1 10.0000000 5.0000000
## 2 0.2115549 -0.3396219
## 3 -0.7103840 0.2055222
## 4 -0.2457418 -0.3441439
## 5 -0.3707048 1.0913543
## 6 1.1138776 0.3280097