Crandore Hub

bfsl

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 <doi:10.1119/1.1632486>). 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.

Versions across snapshots

VersionRepositoryFileSize
0.2.0 rolling linux/jammy R-4.5 bfsl_0.2.0.tar.gz 123.4 KiB
0.2.0 rolling linux/noble R-4.5 bfsl_0.2.0.tar.gz 123.3 KiB
0.2.0 rolling source/ R- bfsl_0.2.0.tar.gz 87.9 KiB
0.2.0 latest linux/jammy R-4.5 bfsl_0.2.0.tar.gz 123.4 KiB
0.2.0 latest linux/noble R-4.5 bfsl_0.2.0.tar.gz 123.3 KiB
0.2.0 latest source/ R- bfsl_0.2.0.tar.gz 87.9 KiB
0.2.0 2026-04-26 source/ R- bfsl_0.2.0.tar.gz 87.9 KiB
0.2.0 2026-04-23 source/ R- bfsl_0.2.0.tar.gz 87.9 KiB
0.2.0 2026-04-09 windows/windows R-4.5 bfsl_0.2.0.zip 127.2 KiB
0.2.0 2025-04-20 source/ R- bfsl_0.2.0.tar.gz 87.9 KiB

Dependencies (latest)

Imports

Suggests