extract coefficients from R lme model in rpy2
问题 I need to extract the results of an R lme model called in python using rpy2. Extracting the coefficients with rx2 as follows : model = nlme.lme(fixed=fixed, data=dfr, random=random, method="REML") print model.rx2("coefficients") Yields all the coefficients as follows: $fixed (Intercept) log.var1 12.571692 -2.929928 $random $random$item (Intercept) log.var1 12545646546 -5.189606e-16 8.276929e-16 $random$category (Intercept) log.var1 0001544848484/DLMX -3.1909917 2.3938670 I want to extract the