Bayesian model selection applied to linear regressions with weighted data