Targeted designs in surveys and longitudinal studies