Skip to content

davidsleonard/leiv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leiv: Bivariate Linear Errors-In-Variables Estimation


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.

Contents

  • 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.)

Requirements

  • Base SAS
  • SAS/STAT, version >= 9.1

Keywords

measurement error, straight line fitting, method comparison, allometry