Description Usage Arguments Details Value See Also Examples
Return slope in orthogonal regression problem
1 | get_slope(x, y)
|
x |
vector with independent variable |
y |
vector with dependent variable |
Whereas ordinary least squares finds the line that minimizes the sum of squared vertical distance, orthogonal regressions finds the line that minimizes the sum of vertical and horizontal differences.
the slope of the line that minimizes the total least squared error
sum_squares()
, get_slope_by_group()
For a more general function (including one that returns the intercept), see pracma::odregress()
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.