Description Usage Arguments Details Value Author(s) Examples
An applet investigating model bias
1 |
expr |
A model formula that is taken as the original model to be evaluated. |
data |
A dataset containing the terms in |
The original model is created from the original data set and the model given by expr
. The response variable is taken to be the term on the left side of your original formula. All other terms are considered explanatory, and they are displayed as checkboxes in the manipulate box. By checking these, each term is added to the new model. The old model coefficient is plotted as a dotted line on each number line, and the new confidence interval and coefficient is plotted in red. The user may vary the confidence level and may vary the number of data points resampled to change the placement and size of the confidence intervals. There is also a original data checkbox which disables the n points to sample slider, as original data is used. When original data is checked as well as only the terms in the original model, the confidence intervals should align with the original predictions. There is a random seed slider to set the random seed. By default its initial value is random.
This applet allows users to see that a linear model will be drastically different with different terms in it. A confidence interval is only applicable to its own model or hypothesis test, it is not universally valid.
A function that allows the user to explore bias in linear models with respect to confidence intervals and coefficients.
Andrew Rich (andrew.joseph.rich@gmail.com) and Daniel Kaplan (kaplan@macalester.edu)
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.