linreg

Calculates the linear regression value y that satisfies the equation y = b0 + b1 * x for an inputted argument x.

Arguments

  1. Input matrix m
  2. Input value or vector x

Output

Resulting value or vector

Examples

linreg