我正在尝试为我的PlayStoreLasso
模型绘制相关变量,但出现此错误:
Error in FUN(X[[i]], ...) : object 'value' not found
你能帮我吗
coef(PlayStoreLasso, s = "lambda.1se") %>%
tidy() %>%
filter(row != "(Intercept)") %>%
ggplot(aes(x = value, reorder(row,value), color = value > 0)) +
geom_point(show.legend = FALSE) +
ggtitle("Influential variables") +
xlab("Coefficient") +
ylab(NULL)