Design and analysis of observational studies