ASCL.net

Astrophysics Source Code Library

Making codes discoverable since 1999

ASCL Code Record

[ascl:9906.001] SLOPES: Least-squares linear regression lines for bivariate datasets

SLOPES computes six least-squares linear regression lines for bivariate datasets of the form (x_i,y_i) with unknown population distributions. Measurement errors, censoring (nondetections) or other complications are not treated. The lines are: the ordinary least-squares regression of y on x, OLS(Y|X); the inverse regression of x on y, OLS(X_Y); the angular bisector of the OLS lines; the orthogonal regression line; the reduced major axis, and the mean-OLS line. The latter four regressions treat the variables symmetrically, while the first two regressions are asymmetrical. Uncertainties for the regression coefficients of each method are estimated via asymptotic formulae, bootstrap resampling, and bivariate normal simulation. These methods, derivation of the regression coefficient uncertainties, and discussions of their use are provided in three papers listed below. The user is encouraged to read and reference these studies.

Code site:
https://web.archive.org/web/20130122223647/http://www2.astro.psu.edu/statcodes/slopes.f
Described in:
https://ui.adsabs.harvard.edu/abs/1990ApJ...364..104I https://ui.adsabs.harvard.edu/abs/1992ApJ...397...55F
Bibcode:
1999ascl.soft06001F

Views: 5396

ascl:9906.001
Add this shield to your page
Copy the above HTML to add this shield to your code's website.