Sparse Estimation and Uncertainty with Application to Subgroup Analysis