regression line

regression line

A kind of model used when both the outcome and explanatory variables are quantitative; a two-parameter model, the parameters being the slope () and y-intercept ().
    • Related Articles

    • gf_lm()

      The gf_lm() function overlays the best-fitting regression line on a scatter plot when chained onto gf_point(). Example: # adds a regression line gf_point(Thumb ~ Height, data = Fingers) %>%       gf_lm( color = "orange", size = 2 )
    • intercept

      Intercept is the value where a line intersects with the y-axis; the value of y when the x is 0; for example, in the equation for a line, y = mx + b, the y-intercept is represented by b.
    • unstandardized slope

      Unstandardized slope measures steepness of the best-fitting line; because It will depend on the units of measurement of the variables included, it must be interpreted in context.
    • gf_vline()

      The gf_vline() function will add a vertical line onto a plot. You can plot the line by referencing a value in a data frame (Example 1), or by specifying the point along the axis where the line should run through (Example 2). Example 1: # Save the ...
    • proportion reduction in error (PRE)

      Proportion reduction in error (PRE) is the proportion of error that has been reduced by a more complex model compared with a simpler model, which in our course is always the empty model. When comparing to the empty model, PRE is calculated as SS ...