You can compute the slope of linear regression (without weights) by:
cor(x, y) * sd(y) / sd(x)
If we have add weights (w) in here as well - how do you compute the slope then?
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It only takes a minute to sign up.Sign up to join this community