Reputation: 3661
I have a question related to multiple regression in R.
How to get r (not R squared) from multiple regression. I think do square root of R squared is not the answer, because r may be a negative number. For linear regression, I know that I can run cor (correlation) to calculate r value, but how can I do it in multiple regression?
How can I get partial r (i.e, to see how each independent variable contribute to the final prediction)?
Upvotes: 0
Views: 1138
Reputation: 1209
pcor()
function from the ggm
package, or the pcor()
function from the ppcor
package.Upvotes: 1