FindRegLine: Find the Regression Line

Description Usage Value Note Author(s) Examples

View source: R/FindRegLine.R

Description

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.

Usage

1

Value

Graphical and numerical output.

Note

Requires package manipulate, available only in R Studio.

Author(s)

Homer White hwhite0@georgetowncollege.edu

Examples

1
2
3
4
## Not run: 
if (require(manipulate)) FindRegLine()

## End(Not run)

tigerstats documentation built on July 2, 2020, 2:32 a.m.