Weighted scores method for regression with dependent data