Best-Fit Straight Line
Overview
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.
- Added
summary.bfsl()andprint.summary.bfsl()methods. - Added broom tidier methods
tidy(),glance()andaugment()for bfsl objects. - Updated
print.bfsl().
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 12 (1 internal)
- Examples that run
- 100%7 run in a plain check
- Exported functions with examples
- 67%
- Documented parameters
- 100%
- Return-value docs
- 67%
- Help pages citing references
- 17%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 88
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Releases over time
Issues over time
6 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/pasturm/bfsl on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 1 practice
Dependencies
Installing bfsl adds 1 package (0 with compiled code, 46 KB of source tarballs). Heaviest: generics 46 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.2.0Latest
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.1.02018-12-16
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2018-12-16
- Total releases
- 2 / 8 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL-3 in 0.2.0
- Minimum R
- ≥ 3.5.0
- Bundled data
- 0.3 KB / 1 file
- Download size
- 87 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("bfsl")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.