我正尝试从plotres运行示例,如下所示
library(glmnet)
library(plotmo)
x <- matrix(rnorm(100 * 10), 100, 10) # n=100 p=10
y <- x[,1] + x[,2] + 3 * rnorm(100) # y depends only on x[,1] and x[,2]
mod <- glmnet(x, y)
plotres(mod)
但是,我收到了错误消息:
plot_glmnet(elnet.object,xvar =“ rlambda”,grid.col = 0,s = 0,nresponse = 1)
错误:评估嵌套太深:无限递归/选项(表达式=)?
我正在使用R版本3.4.1(2017-06-30)和plotmo_3.5.0,glmnet_2.0-16