Regression analysis based on stratified samples