Statistical Analysis of Treatment Compliance for Clinical Trials using Electronic Compliance Monitoring