Reeves, GalenZhu, Zihan2024-06-062024https://hdl.handle.net/10161/31044<p>In electronic health records (EHR) analysis, clustering patients according to patterns in their data is crucial for uncovering new subtypes of diseases. Existing medical literature often relies on classical hypothesis testing methods to test for differences in means between these clusters. Due to selection bias induced by clustering algorithms, the implementation of these classical methods on post-clustering data often leads to an inflated type-I error. In this paper, we introduce a new statistical approach that adjusts for this bias when analyzing data collected over time. Our method extends classical selective inference methods for cross-sectional data to longitudinal data. We provide theoretical guarantees for our approach with upper bounds on the selective type-I and type-II errors. Numerical experiments on simulated data verify our theory.</p>StatisticsFunctional Post-Clustering Selective Inference with Applications to EHR Data AnalysisMaster's thesis