Accounting For Selection Bias And Missing Data For Inferential Questions In Electronic Health Record-Linked Biobanks