Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python port of R's 'relaimpo' package

I need to calculate Lindeman-Merenda-Gold (LMG) scores, for my regression analysis. I've found that is is available under relaimpo package in R-Language.

Unfortunatelly, I don't have any experience with R. I checked the internet but I couldn't find. Is there a python port of this package ? If it doesn't exist, is it possible to use that package through python somehow ?

like image 926
zwlayer Avatar asked Oct 27 '25 07:10

zwlayer


1 Answers

Since you don't reveal more details about the exact problem you want to solve, I assume you are just looking for the way of calling R code from python.

I think rpy2 might be a good start point for you. Below are some possibly helpful references about using rpy2

  • Calling R From Python With rpy2
  • Python -> R bridge
  • Calling R from Python | Magic of rpy2
  • Rpy2 Made Easy

Most Importantly: Considering you didn't touch R previously, I guess it would be better you read the manual of relaimpo before you start using rpy2. You can search the related documents through CRAN or other external sources, e.g.,

  • relaimpo: Relative Importance of Regressors in Linear Models
  • Relative Importance for Linear Regression in R: The Package relaimpo
like image 180
ThomasIsCoding Avatar answered Oct 28 '25 19:10

ThomasIsCoding



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!