Bayesian Regression Analysis with Linked and Duplicated Data