This repository contains SAS macros for estimating the slope and intercept of a bivariate linear relationship by calculating a posterior density that is invariant to interchange and scaling of the coordinates.
The SAS macros implement the method described in Leonard, David. Estimating a bivariate linear relationship. Bayesian Anal. 6 (2011), no. 4, 727--754. doi:10.1214/11-BA627. https://projecteuclid.org/euclid.ba/1339616542 and are a companion to the R package, https://CRAN.R-project.org/package=leiv.
- leiv_macros.sas (SAS macros for calculating the leiv posterior density and related estimates)
- leiv_examples.sas (SAS program illustrating calls to the leiv SAS macro.)
- Base SAS
- SAS/STAT, version >= 9.1
measurement error, straight line fitting, method comparison, allometry