merliseclyde / BAS

BAS R package for Bayesian Model Averaging and Variable Selection
https://merliseclyde.github.io/BAS/
GNU General Public License v3.0
42 stars 16 forks source link

Standard Errors for fitted values and predictions are incorrect for linear models with weights and glms #52

Open merliseclyde opened 4 years ago

merliseclyde commented 4 years ago

Standard errors for the regressions function and fitted values do not account for weights in calculating the standard errors bas lm objects and bas glm objects. Need to incorporate the weights in calculations the leverage values.

Added unit test to testthat for package.