Developing Statistical Methods for Estimating Phenotypes Using Electronic Health Record Data