Closed Make42 closed 5 years ago
There seems to be a bug in R/lime.R. In line 52
R/lime.R
r2 <- fit$deviance / fit$null.deviance
but in line 60
r2 <- fit$dev.ratio
where dev.ratio=1-dev/nulldev according to ?glmnet. So in the case of line 52 a 0 would be a perfect fit, while in line 60 a 1 would be perfect fit. This should be consistent!
dev.ratio=1-dev/nulldev
?glmnet
Also, please mention, once this fix is pushed to cran.
Should get on CRAN this week
There seems to be a bug in
R/lime.R
. In line 52but in line 60
where
dev.ratio=1-dev/nulldev
according to?glmnet
. So in the case of line 52 a 0 would be a perfect fit, while in line 60 a 1 would be perfect fit. This should be consistent!