Skip to content

Best-Fit Straight Line

0packages depend
4.1Kdownloads / year
92.1%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.2.0
  • Added summary.bfsl() and print.summary.bfsl() methods.
  • Added broom tidier methods tidy(), glance() and augment() for bfsl objects.
  • Updated print.bfsl().

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 56 s · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-09-08
  • ERROR12 OK, 1 ERROR2026-09-07
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.2.0
READMEYes · 342 wordsVignettesNoNEWSYes · 100% structured · mentions 0.2.0Citation fileNoWebsitenot declared in DESCRIPTION
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

4.1K
CRAN downloads in the past year
Rank #14,284 · ~11/day · ~344/mo
Daily download trend is not available in this view yet.
32130 days
82490 days
4.1K1 year
Compare downloads with other packages →
Also on116 r2u21 autocran

Repository

3Stars
0Forks
0Open issues
0Open PRs
2Releases
32Commits
2Commit identities
32 commits · Last activity 2022-08-26 · Default branch at 0.2.1, ahead of CRAN 0.2.0 (checked 2026-10-18)
Responsiveness
How these are sampled
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

2024-09-04 · 32026-07-07 · 3
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (1)
README.Rmd
Coverage (1)
Coverage reporting
CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Research and citation (1)
CITATION.cff
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)

Installing bfsl adds 1 package (0 with compiled code, 46 KB of source tarballs). Heaviest: generics 46 KB.

Depends (1)
R >= 3.5.0
Imports (1)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.1.0 (2018)
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.2.0Latest
    record
    2021-09-23 · current release · diff ↗ ·
    added 3 exports
    augment, glance, tidy
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1.0
    record
    2018-12-16
  • R
    R 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")
Sturm, P. (2021). bfsl: Best-Fit Straight Line (Version 0.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for bfsl version 0.2.0 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy