Efficient Inference with Panel Data