Best-Fit Straight Line

How to fit a straight line through a set of points with errors in both coordinates? The 'bfsl' package implements the York regression (York, 2004 ). It provides unbiased estimates of the intercept, slope and standard errors for the best-fit straight line to independent points with (possibly correlated) normally distributed errors in both x and y. Other commonly used errors-in-variables methods, such as orthogonal distance regression, geometric mean regression or Deming regression are special cases of the 'bfsl' solution.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("bfsl")

0.2.0 by Patrick Sturm, 5 years ago


https://github.com/pasturm/bfsl


Report a bug at https://github.com/pasturm/bfsl/issues


Browse source code at https://github.com/cran/bfsl


Authors: Patrick Sturm [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports generics

Suggests testthat, tibble, dplyr


See at CRAN