Two-sample two-stage least squares estimation