Inference from clustered sample