mkshaw / r2mlm

r2mlm: R Package for Calculating R-Squared in Multilevel Models
27 stars 1 forks source link

error #34

Open benjaminwnelson opened 3 years ago

benjaminwnelson commented 3 years ago

This package looks great, but I just ran into this error and when I removed NAs it still occurred. Error in $<-.data.frame(*tmp*, ".fitted", value = c(7 = 1.16732165838092, : replacement has 274 rows, data has 708

mkshaw commented 3 years ago

Hi @benjaminwnelson, sorry you're running into that issue! Can you tell me more about your dataset and model?

Additionally, if you try running devtools::install_github("mkshaw/r2mlm", ref = "refactoring") then library(r2mlm), and then using the package as you did before, do you still get that error? I've been making changes to the code, so perhaps I've fixed this issue in the process.

gwang921921 commented 3 years ago

I am also interested in this package's functions. But it seems that the function "r2mlm" doesn't work for me. I loaded the "teachst" data and copied your code, but it takes R forever to run it...