Description Usage Value Note Author(s) Examples
The regression minimizes the residual sum of squares (RSS). In this game, the player chooses slope and y-intercept of a line so as to approximate the regression line. The move-able line is set initially as a horizontal line with height equal to the mean of the y-coordinates of the scatter plot, so initially the residual sum of squares equals the total sum of squares (TSS). The player's score is the sum of the number of turns taken and the difference between the current RSS and the regression line's RSS (as a percentage of TSS-RSS for regression line). The aim is to lower one's score.
1 |
Graphical and numerical output.
Requires package manipulate
, available only in R Studio.
Homer White hwhite0@georgetowncollege.edu
1 2 3 4 | ## Not run:
if (require(manipulate)) FindRegLine()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.