Comments (7)
Thanks for opening this issue! Unfortunately, as the sole developer of this project, it's hard for me to keep up with numerous API changes that rpy2 introduces with each version. To get going right away, I would suggest pip install rpy2==2.9.4
to force using a non 3.0 rpy2 version which should work.
from pymer4.
ok, I found this issue is similar to the one I have and tried to switch to 2.9.4. I do not see error for rpy2==2.9.4 installation, but there is import error when the Lm, Lmer4 are imported as below (I do not have import error when using rpy2==3.0.5).
Can you add some documentation about how to avoid errors with requiring an older version of rpy2 than current default.
ImportError: dlopen(/usr/local/lib/python3.6/site-packages/rpy2/rinterface/_rinterface.cpython-36m-darwin.so, 2): Library not loaded: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libR.dylib
Referenced from: /usr/local/lib/python3.6/site-packages/rpy2/rinterface/_rinterface.cpython-36m-darwin.so
Reason: image not found
from pymer4.
@yanst001 Thanks for reporting this. It looks like this is an rpy2 issue not a pymer issue as rpy2 cannot find your R installation. How did you install R? Via conda or manually? And did you still version 3.5 (what rpy2 is looking for)? This can happen if you install some R related things through conda, and others manually; mixing and matching generally is best avoided. I have some instructions in the documentation for installation issues that might help with this.
Unfortunately Iβm currently finishing up my dissertation so I wonβt be able to get to updating the documentation until then. I do have a big update release planned for after that with numerous fixes and hopefully easier installation.
from pymer4.
It seems a simple change from ri2py
to rpy2py
, I guess this can be done locally?
from pymer4.
ok, my solution was to shift fully converted to rpy2
, this takes some time to use specific R function in python, but works
from pymer4.
Sounds good. You can also try the latest release (pushed minutes ago) version 0.7.0. Lots of bug and compatibility fixes that work with the latest rpy2 version
from pymer4.
I'm going to close this for now, but can revisit if there are still problems
from pymer4.
Related Issues (20)
- Add option to set seed when boostrapping HOT 2
- Saving Lmer model HOT 2
- pymer4 in colab HOT 4
- Simple slopes and differences in simple slopes for continuous x categorical interactions LMER HOT 1
- Make pymer compatible with most recent python version? HOT 3
- Possible to obtain the estimates from bootstrapping? HOT 1
- Cannot get ANOVA p-values for binomial GLMMs HOT 1
- Installation with Python >= 3.10.0a0? HOT 2
- Create conda-forge version of pymer4
- Speed up standardization of regression coefficients
- Offer `rpy2` free version that uses bayesian estimation via Bambi and Pymc HOT 1
- too large a matrix for LINPACK HOT 1
- Suppressing printing of .fit() HOT 1
- How to specify the number of decimal places in model.fit() HOT 3
- Post-hoc testing support for LM's HOT 1
- Issues with degrees of freedom of my lmer model.
- Bug in likelihood-ratio test p-value calculation for Lmer models HOT 1
- ImportError on lmer HOT 2
- Issue with r-matrix package? HOT 1
- nbinom
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymer4.