How to call ltm function using rpy package in python

Mohit Khanna mohit.personal1987 at gmail.com
Tue Jan 8 05:29:31 EST 2013


I am trying the following code--

from rpy import *
r.library("ltm")

dat= #some data frame or matrix
r.ltm(r('dat~z1'))

error coming is---
RPy_RException: Error in eval(expr, envir, enclos) : object 'dat' not found

Please tell me the right way to call ltm function using rpy library



More information about the Python-list mailing list