Applications Of Shared Random Effects Models To Electronic Health Records Data